Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-decltype2.C
blob: 15ca995f828a66d34ecee1a25c293e2c6f032843 [
file
] [
log
] [
blame
]
// PR c++/65942
// { dg-do compile { target c++11 } }
template
<
typename
T
>
constexpr
int
f
(
T t
)
{
return
t
;
}
template
<
typename
T
,
typename
=
decltype
(
f
(
T
()))>
void
g
(
T
)
{
}
void
g
(...)
{
}
int
main
()
{
g
(
""
);
}