[Bug c++/89881] Incorrect warning "-Wunneeded-internal-declaration"

2019-03-29 Thread lumosimann at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89881

--- Comment #2 from Lukas Mosimann  ---
Yes you're right. But also GCC reports a warning, saying that the function is
only declared, but not defined.

This might be exactly what we want, if the function is only used at compile
time, as a kind of type mapping.

So I'm not sure, but in my opinion, if a function is declared, but not defined,
and it is used in a decltype - that is totally ok and no warning should be
omitted at all.

[Bug c++/89881] Incorrect warning "-Wunneeded-internal-declaration"

2019-03-29 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89881

Eric Gallager  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||egallager at gcc dot gnu.org
 Resolution|--- |INVALID

--- Comment #1 from Eric Gallager  ---
-Wunneeded-internal-declaration is a clang flag, not a gcc one