blob: 2041848294d70947e70de520505190e461d5bbeb [file] [log] [blame]
// PR c++/79566
// { dg-do compile { target c++11 } }
struct X {
struct Y { };
Y* begin();
Y* end();
};
void f()
{
X x;
for (struct X::Y& y : x)
;
}