summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/const5.C
blob: 5d3ec5b1c910c32a703e2fa074b5f9c005e12f05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/49176
// { dg-options -std=c++0x }

struct A { static int a(); };

template<int>
struct B { static int const b; };

int f() { return B<0>::b; }

template<int I>
int const B<I>::b=A::a();