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