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