summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ref3.C
blob: 976c093a15b7244540da35cf6847b2a716525cca (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/28341

template<const int&> struct A {};

template<typename T> struct B
{
  A<(T)0> b; // { dg-error "constant|not a valid" }
  A<T(0)> a; // { dg-error "constant|not a valid" }
};

B<const int&> b;