Debian Codegraph @

gcc/testsuite/g++.dg/lookup/name-clash15.C

raw
1 struct C {
2 static const int x = 24;
3 };
4
5 struct A
6 {
7 struct B: C
8 {
9 enum { E = x };
10 };
11
12 // OK, earlier x was found in a base, lookup didn't pass through A.
13 static const int x = 42;
14 };