https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93810
Bug ID: 93810 Summary: missing -Wmismatched-tags on a typedef of an implicit class template specialization Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The typedef below should be diagnosed by -Wmismatched-tags but isn't. Both Clang and Visual C++ diagnose it as expected. $ cat t.C && gcc -S -Wmismatched-tags -Wredundant-tags t.C template <int> class C { }; typedef struct C<0> C0; // missing -Wmismatched-tags