2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / template / ref3.C
blob91e3c93a35d9e275ec68061f153b75d40719242b
1 // PR c++/28341
3 template<const int&> struct A {};
5 template<typename T> struct B
7   A<(T)0> b; // { dg-error "constant|not a valid" }
8   A<T(0)> a; // { dg-error "constant|not a valid" "" { xfail c++98_only } }
9                                                        // PR c++/68699
12 B<const int&> b;