Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/warn/Wredundant-tags-2.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 // PR c++/93138 | |
2 // { dg-do compile } | |
3 // { dg-options "-Wredundant-tags" } | |
4 | |
5 struct Foo | |
6 { | |
7 enum Kind { a }; | |
8 private: | |
9 Kind Kind; | |
10 }; | |
11 enum Foo::Kind foo (); // { dg-bogus "is private within this context|redundant" } | |
12 struct Bar | |
13 { | |
14 struct Kind { int a; }; | |
15 private: | |
16 Kind Kind; | |
17 }; | |
18 struct Bar::Kind bar (); // { dg-bogus "is private within this context|redundant" } |