[Bug c++/93810] New: missing -Wmismatched-tags on a typedef of an implicit class template specialization
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 18 17:16:00 GMT 2020
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
More information about the Gcc-bugs
mailing list