Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae41.C
blob: bd6f624f0adccffd72c7615d8568c74653ce06f9 [
file
] [
log
] [
blame
]
// PR c++/54542
// { dg-do compile { target c++11 } }
template
<
class
T
>
void
f
(
decltype
(
new
T
(
1
,
2
))
*)
{
T
(
1
,
2
);
}
template
<
class
T
>
void
f
(...)
{}
int
main
()
{
f
<int>
(
0
);
}