https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102036
Bug ID: 102036 Summary: -Wmismatched-tags doesn't warn for explicit instantations Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org CC: msebor at gcc dot gnu.org Target Milestone: --- Clang gives a -Wmismatched-tags warning about this, but GCC doesn't: template<typename T> struct X { }; template class X<int>;