The following code causes clang to enter into an infinite recursion on windows 7 while attempting to microsoft-mangle the following lambda's operator function type:
auto L = [] () { struct M {}; return M{}; }; auto X = L();
I have kludged together a quick and dirty patch to identify where the problem lies, so that those who understand the microsoft-mangling process better can either help me refine it - or if they prefer - modify it to make it commit-worthy and commit it.
FYI - I suspect local enums might cause such a problem too, right (what else?)