Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum_base5.C
blob: c01e857e612e224ddb041a0d69ce6be6a9d313b3 [
file
] [
log
] [
blame
]
// PR c++/96380
// { dg-do compile { target c++11 } }
extern
const
int
a
,
b
;
enum
struct
c
;
template
<class>
enum
struct
c
:
union
enum
struct
c
{
e
=
b
,
f
=
a
};
// { dg-error "types may not be defined|expected|elaborated-type-specifier" }