https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #3)
> The diagnostic is usually for false positive/negative warnings or wrong
> information in diagnostic messages. It's not normally used for internal
> compiler errors. But I don't see an ICE on trunk with this test case, just
> errors (so diagnostic would seem appropriate). At the same time, the latest
> GCC output seems reasonable. Clang prints something similar:
>
> pr95725.C:1:20: error: expected expression
> template <decltype(= ;
> ^
> pr95725.C:1:22: error: expected expression
> template <decltype(= ;
> ^
> pr95725.C:1:22: error: expected ',' or '>' in template-parameter-list
> pr95725.C:1:22: warning: declaration does not declare anything
> [-Wmissing-declarations]
> 1 warning and 3 errors generated.
>
> I'm not sure there's a lot to improve here.
Agreed. As I said in bug 95723, I'm on the verge of closing these reports as
WONFIX or INVALID or something similar.