Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
anonunion1.C
blob: ea17e5d5f908e58f880dbd6f21b70d38c300e451 [
file
] [
log
] [
blame
]
// PR c++/47303
// { dg-do compile }
struct
Z
{
void
foo
(
int
);
};
struct
F
{
typedef
void
(
Z
::*
zm
)
(
int
);
typedef
void
(
F
::*
fm
)
(
int
);
template
<zm>
void
bar
(
int
)
{
union
{
Z z
;
};
}
};
F
::
fm m
=
&
F
::
bar
<&
Z
::
foo
>;