https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120343
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Only MSVC (which is usually bad when it comes to diagnostic issues) actually does a decent job at providing the good diagnostic here: <source>(4): error C2187: syntax error: ']' was unexpected here <source>(2): fatal error C1075: '{': no matching token found Both clang and EDG provide a very similar in fashion issue as GCC.