Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
pr86201.C
blob: e7019c22d95d8d5ecd3f6080527ccebec3cf320c [
file
] [
log
] [
blame
]
// PR c++/86201
// { dg-do compile { target c++11 } }
template
<
class
U
,
class
V
>
auto
fn1
(
V
&&
v
)
->
decltype
(
U
(
v
))
{
return
;
// { dg-error "return-statement with no value" }
}
void
fn2
()
{
fn1
<bool>
(
1.0
);
}