[Bug c++/102036] New: -Wmismatched-tags doesn't warn for explicit instantations

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 24 11:30:51 GMT 2021


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>;


More information about the Gcc-bugs mailing list