blob: 39845b937c13db49a14b548779ceeaeaaccc123b [file] [log] [blame]
// PR c++/106230
// { dg-do compile { target c++11 } }
struct A {
A();
operator int();
};
template <int N> struct array {
A elts[N];
A *begin();
A *end();
};
void fn() {
for (int i : array<4>{})
;
}