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.