Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
scoped_enum6.C
blob: 34a56b20f0dba38aa40ac9db80445551ae714dcf [
file
] [
log
] [
blame
]
// PR c++/65592
// { dg-do compile { target c++11 } }
struct
S
{
enum
class
C
{
};
};
void
bar
(
S
::
C
)
{
}
void
foo
()
{
S f
;
bar
(
f
.
C
::
X
);
// { dg-error "13:'X' is not a member" }
}