blob: 2764f75c1351e55e2a3dc55eedc567b384fb54d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// { dg-do compile }
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// PR c++/10371: Incorrect tree node built in
// finish_non_static_data_member.
struct A
{
int i; // { dg-error "non-static" }
};
template <int> struct B
{
int foo() { return A::i; } // { dg-error "this location" }
};
template struct B<0>;
|