Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
}