summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static5.C
blob: aed6208d5bec0a4cff1d4afa3f5fd23b99a24463 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }

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

double d = S<double>::t;