Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
complit11.C
blob: 07418aba985f9d916acaba6175bcddbdd06349f0 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "" }
struct
A
{
int
i
;
};
template
<
int
t
>
void
foo
()
{
((
struct
A
)
{
0
}).
i
+=
1
;
// { dg-error "lvalue" }
}
void
g
(
void
)
{
foo
<
0
>();
}