[Bug c++/60063] -Wunused-local-typedefs warning despite attribute used in a template

msebor at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 4 23:53:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60063

--- Comment #1 from Martin Sebor <msebor at gmail dot com> ---
I confused attribute used with unused in the test case. With the latter, the
warning is not emitted as one would expect. Attribute used isn't documented for
types, so it's not completely clear whether the test is valid.

Searching through the test suite, I came across Wunused-local-typedefs.c
(apparently added for bug 33255) which exercises attribute used with a typedef,
albeit in C code, so the test case might be valid after all and the
documentation might need updating.



More information about the Gcc-bugs mailing list