blob: 75341d4148a35f1c2e4747b4aedcc6e0616d8cb6 [file] [log] [blame]
// { dg-do assemble }
// From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
// Reported against EGCS snaps 98/06/18.
struct a {
a();
void junk( float );
void junk( double );
void bar( double );
void bar( float );
void foo( void (a::*member)(float) ); // { dg-message "candidate" }
};
a::a()
{
foo( &junk ); // { dg-error "match" } junk is an unqualified-id.
foo( &bar ); // { dg-error "match" } bar is an unqualified-id.
}