]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/93138 (elaborated type specifier visibility check problem)
authorJakub Jelinek <jakub@redhat.com>
Sun, 5 Jan 2020 12:50:40 +0000 (13:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 5 Jan 2020 12:50:40 +0000 (13:50 +0100)
commit39bec8cd35fa035aa10ddb123eb8a5715d323457
tree2c53f7c315490272f70e8cfdffd5f28d5743572b
parent5205a4456b555b5b123ee3ec759e5c74dbd01057
re PR c++/93138 (elaborated type specifier visibility check problem)

PR c++/93138
* parser.c (cp_parser_check_class_key): Disable access checks for the
simple name lookup.
(cp_parser_maybe_warn_enum_key): Likewise.  Return early if
!warn_redundant_tags.

* g++.dg/warn/Wredundant-tags-2.C: New test.

From-SVN: r279886
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wredundant-tags-2.C [new file with mode: 0644]