PR c++/93801 - False -Wmismatched-tags upon redundant typename
authorMartin Sebor <msebor@redhat.com>
Thu, 20 Feb 2020 21:31:38 +0000 (14:31 -0700)
committerMartin Sebor <msebor@redhat.com>
Thu, 20 Feb 2020 21:31:38 +0000 (14:31 -0700)
commit96cbc56ed96490c58a9800f3e7507758b6602777
treefc3c8cafecf114fbdd5c822a94ba6d89f45c6bb5
parent7004e09db1e2a940ed6ad7578187d47d7ea7c773
PR c++/93801 - False -Wmismatched-tags upon redundant typename

gcc/cp/ChangeLog:

PR c++/93801
* parser.c (cp_parser_check_class_key): Only handle true C++ class-keys.

gcc/testsuite/ChangeLog:

PR c++/93801
* g++.dg/warn/Wredundant-tags-3.C: New test.
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wredundant-tags-3.C [new file with mode: 0644]