blob: 375a7073a4150f80129e16f6bb1035e49e67cb8b [file] [log] [blame]
// PR c++/77545
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-pedantic" }
template < typename T > struct A
{
A ();
~A ();
T t;
};
void f (A < int > a)
{
for (auto x : (A<int>[]) { a })
;
}