Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum25.C
blob: cb2cf8f5363b15bf528f981c6ce33eb1cf7c9dfb [
file
] [
log
] [
blame
]
// PR c++/56793
// { dg-require-effective-target c++11 }
struct
A
{
enum
struct
B
{
X
,
Y
}
b
;
}
a
;
enum
struct
D
{
X
,
Y
};
struct
C
{
}
c
;
int
main
()
{
if
(
a
.
b
==
a
.
B
::
Y
)
a
.
b
=
A
::
B
::
X
;
c
.
D
::
Y
;
// { dg-error "not a member" }
}