Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr70466-2.C
blob: 7a7458a61f1ea1e58d2cd7231082f363a974cad1 [
file
] [
log
] [
blame
]
// PR c++/70466
template
<
class
T
,
class
S
>
struct
A
{
explicit
A
(...)
{}
};
template
<
class
T
,
class
S
>
A
<
T
,
S
>
foo
(
T
(
S
::*
f
)
())
{
return
A
<
T
,
S
>
(
f
);
}
struct
B
{
void
bar
()
{}
};
int
main
()
{
foo
(&
B
::
bar
);
return
0
;
}