[Bug c++/90961] awful diagnostics for noexcept-expression with type name

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 27 13:44:00 GMT 2020


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-01-27
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed.

Clang provides a reasonable error message:

clang++ pr90961.cc -c
pr90961.cc:1:28: error: expected '(' for function-style cast or type
construction
static_assert(noexcept(void));
                       ~~~~^
1 error generated.


More information about the Gcc-bugs mailing list