Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
forw_enum15.C
blob: 65816047432ebc12ad89484bfbc4580369cca777 [
file
] [
log
] [
blame
]
// PR c++/49604
// { dg-do compile { target c++11 } }
struct
Foo
{
private
:
int
val
;
enum
impl_t
:
int
;
public
:
Foo
(
impl_t
v
)
:
val
(
v
)
{}
};
enum
Foo
::
impl_t
:
int
{
X
};
Foo
test
=
Foo
::
X
;
// { dg-error "private" }