Merged r158704 through r158906 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / scoped8.C
blob2764f75c1351e55e2a3dc55eedc567b384fb54d7
1 // { dg-do compile }
3 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5 // PR c++/10371: Incorrect tree node built in
6 // finish_non_static_data_member.
8 struct A
10     int i;                      // { dg-error "non-static" }
13 template <int> struct B
15     int foo() { return A::i; }  // { dg-error "this location" }
18 template struct B<0>;