blob: 0662543d941b8659e5c2316a572e6afdb8c037af [file] [log] [blame]
// { dg-do compile }
// { dg-options "" }
struct A { int i; };
template<int t>
void foo()
{
((struct A) { 0 }).i += 1; // { dg-error "temporary" }
}
void g(void)
{
foo<0>();
}