Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr82299.C
blob: 27f4c5f61727aa3240db2a40a1dd59d0a5582c31 [
file
] [
log
] [
blame
]
// PR c++/82299
// { dg-do compile { target c++11 } }
// { dg-options "-Wuseless-cast" }
enum
Enum
:
char
{
A
=
0
,
B
=
1
};
struct
S
{
Enum
e
{
Enum
::
A
};
// { dg-bogus "useless cast to type" }
};