OSDN Git Service

PR c++/36435
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / ref3.C
1 // PR c++/28341
2
3 template<const int&> struct A {};
4
5 template<typename T> struct B
6 {
7   A<(T)0> b; // { dg-error "constant|not a valid" }
8   A<T(0)> a; // { dg-error "constant|not a valid" }
9 };
10
11 B<const int&> b;