Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
ref3.C
blob: 91e3c93a35d9e275ec68061f153b75d40719242b [
file
] [
log
] [
blame
]
// 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
;