Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
ref9.C
blob: e6dfc03cd7f9098fcd5abef06d8c549ea65e6616 [
file
] [
log
] [
blame
]
// PR c++/106201
// { dg-do compile { target c++11 } }
struct
A
{
template
<
class
T
,
class
=
decltype
(
f
(*(
T
*)
nullptr
))>
A
(
const
T
&);
};
struct
B
{
template
<
class
T
>
B
(
const
T
&);
};
void
f
(
A
&);
void
f
(
B
);
struct
C
{
};
int
main
()
{
C c
;
f
(
c
);
}