Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
);
}