Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
ref5.C
blob: 69c2d6989c7b2181681577f3da3ea0372c0bf5ba [
file
] [
log
] [
blame
]
// PR c++/35075
template
<
int
&>
struct
A
{};
template
<
typename
T
>
struct
B
{
static
const
T t
;
A
<t>
a
;
// { dg-error "reference variable" }
};
B
<
int
&>
b
;
// { dg-message "required" }