aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static5.C
blob: f6e125dbfb7633245774ec28f2e1d53246d69be7 (plain)
1
2
3
4
5
6
7
8
9
// Build don't link:

template <class T>
struct S
{
  static const T t = 3; // ERROR - initializing non-integral type
};

double d = S<double>::t;