aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/const8.C
blob: 5b12629539b4ede9e8d4ff4818dbf7223e85aed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/48707

struct A {
  static int a();
};

template<typename X>
struct B: A {
  static int const b;
};

template<typename X>
int const B<X>::b=B<X>::a();