☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum25.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/enum25.C
code
plain
raw
1
// PR c++/56793
2
// { dg-require-effective-target c++11 }
3
4
struct A
5
{
6
enum struct B {X, Y} b;
7
} a;
8
9
enum struct D {X,Y};
10
struct C { } c;
11
12
int main ()
13
{
14
if (a.b == a.B::Y)
15
a.b = A::B::X;
16
17
c.D::Y; // { dg-error "not a member" }
18
}