☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
name-clash15.C
☽
☼
gcc/testsuite/g++.dg/lookup/name-clash15.C
code
plain
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
};