aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C
blob: d966fd9c01fed62dfefe77c56ebe66f5a44b2759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Build don't link:
// 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) ); // ERROR - candidate
};

a::a()
{
	foo( &junk ); // ERROR - junk is an unqualified-id.
	foo( &bar );  // ERROR - bar is an unqualified-id.
}