https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63872
--- Comment #2 from thakis at chromium dot org --- I think warning on unused typedefs in local classes is generally a useful feature, not a bug. The bug here is that it's warning on a typedef in a local class that is being used.