Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
memfn2.C
blob: c3d76133dbd46613e246ad67636db81d5d9cc103 [
file
] [
log
] [
blame
]
// PR c++/37646
struct
A
{
void
foo
();
void
bar
(
int
i
)
{
void
(*
p
)()
=
i
?
foo
:
foo
;
// { dg-error "invalid use of member" }
}
};