[Bug c++/93810] missing -Wmismatched-tags and -Wredundant-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:55:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93810
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|missing -Wmismatched-tags |missing -Wmismatched-tags
|on a typedef of an implicit |and -Wredundant-tags on a
|class template |typedef of an implicit
|specialization |class template
| |specialization
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Also missing -Wredundant-tags:
$ cat t.C && gcc -S -Wmismatched-tags -Wredundant-tags t.C
template <int> class C { };
typedef C<0> C0; // okay
typedef class C<0> C0; // missing -Wredundant-tags
typedef C<1> C1; // okay
typedef struct C<1> C1; // missing -Wmismatched-tags
More information about the Gcc-bugs
mailing list