Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
unary3.C
blob: abca0322d29e17165ba21a8dd9ec23828a3f7004 [
file
] [
log
] [
blame
]
// PR c++/41131
// { dg-do compile }
struct
X
{
enum
E
{
a
=
100
};
};
int
main
()
{
X x
;
(
void
)
&
x
.
a
;
// { dg-error "lvalue required" }
}