Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/scoped_enum6.C

raw
1 // PR c++/65592
2 // { dg-do compile { target c++11 } }
3
4 struct S
5 {
6 enum class C { };
7 };
8
9 void
10 bar (S::C)
11 {
12 }
13
14 void
15 foo ()
16 {
17 S f;
18 bar (f.C::X); // { dg-error "13:'X' is not a member" }
19 }