https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82756
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2017-10-28 00:00:00 |2021-8-27 Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang: <source>:1:1: error: expected unqualified-id while(true) {} ^ ICC: <source>(1): error: expected a declaration while(true) {} ^ GCC trunk: <source>:1:1: error: expected unqualified-id before 'while' 1 | while(true) {} | ^~~~~ MSVC: <source>(1): error C2059: syntax error: 'while' <source>(1): error C2143: syntax error: missing ';' before '{' <source>(1): error C2447: '{': missing function header (old-style formal list?) All poor :).