https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44854

peter0x44 at disroot dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter0x44 at disroot dot org

--- Comment #4 from peter0x44 at disroot dot org ---
GCC trunk currently emits:
<source>:1:18: error: expected unqualified-id before '}' token
    1 | struct foo { int };
      |                  ^
Which seems pretty okay to me.

I still think there is room for improvement and I prefer clang's wording on
this issue:

<source>:1:18: error: expected member name or ';' after declaration specifiers
    1 | struct foo { int };
      |              ~~~ ^

I think more people are likely to understand what a "member name" is, rather
than "unqualified-id"

Reply via email to