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