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