summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C
blob: 67445308c1a7626c30c1d8b054d91d76df652993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { 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 "void a::foo|no known conversion" } 
};

a::a()
{
	foo( &junk ); // { dg-error "match" } junk is an unqualified-id.
	// { dg-message "candidate" "candidate note" { target *-*-* } 18 }
	foo( &bar );  // { dg-error "match" } bar is an unqualified-id.
	// { dg-message "candidate" "candidate note" { target *-*-* } 20 }
}