[Bug c++/98042] error diagnostic for unmatched parentheses could be improved

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 28 00:46:54 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-11-28
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, the C front-end does a better job:

<source>:4:11: error: expected ')' before 'double'
    4 |   ((char *double(foo))[(sizeof(foo)-1)] = '\0';  // ')' instead of
'double'
      |    ~      ^~~~~~
      |           )


More information about the Gcc-bugs mailing list