Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
conv5.C
blob: e238f9f30b787e73c59db3fa70e796ac7ff287b4 [
file
] [
log
] [
blame
]
// PR c++/89876
// { dg-do compile { target c++11 } }
// { dg-prune-output "sorry" }
template
<
typename
T
>
T f
(
T
,
char
*);
template
<
typename
T
>
decltype
(
f
(
T
(),
""
))
g
(
T
)
{
return
""
;
}
// { dg-error "invalid conversion" }
void
h
()
{
g
(
0
);
}