https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120257
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang produces: <source>:11:13: fatal error: function scope depth exceeded maximum of 127 11 | NESTED6(string) x(2); | ^ MSVC: <source>(11): fatal error C1060: compiler is out of heap space Simply don't do this.