// { dg-do compile } // Origin: Volker Reichelt // PR c++/10371: Incorrect tree node built in // finish_non_static_data_member. struct A { int i; // { dg-error "object missing" } }; template struct B { int foo() { return A::i; } // { dg-error "this location" } }; template struct B<0>;