☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
ref3.C
☽
☼
gcc/testsuite/g++.dg/template/ref3.C
code
plain
raw
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;