view gcc/testsuite/g++.dg/template/ref3.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// 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" "" { xfail c++98_only } }
                                                       // PR c++/68699
};

B<const int&> b;