OSDN Git Service

add c++/43145 tag to changelog and testcase
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / scoped8.C
1 // { dg-do compile }
2
3 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4
5 // PR c++/10371: Incorrect tree node built in
6 // finish_non_static_data_member.
7
8 struct A
9 {
10     int i;                      // { dg-error "non-static" }
11 };
12
13 template <int> struct B
14 {
15     int foo() { return A::i; }  // { dg-error "this location" }
16 };
17
18 template struct B<0>;