summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash53.C
blob: bbd1e7fc7aeb3598f38a3c9d2219d41521d26d80 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/28110
// { dg-do compile }

template<int> struct A {};

template<typename T> struct B
{
  template<T I> B(A<I>);  // { dg-error "template constant parameter" }
};

B<double> a=A<0>();  // { dg-error "non-scalar type" }