Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
ref5.C
blob: 0042acd0670764c8ef66a62b54d7cfc4322fa93d [
file
] [
log
] [
blame
]
// PR c++/96104
template
<
typename
T
>
void
fn
(
T
&);
class
E
{};
struct
F
{
template
<
typename
T
>
void
mfn
(
T t
)
{
t
,
fn
(
E
());
}
// { dg-error "cannot bind non-const lvalue reference" }
};
int
main
()
{
E e
;
F f
;
f
.
mfn
(
e
);
}