OSDN Git Service

tweak
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb131.C
1 // Build don't link:
2 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de> 
3 // Reported against EGCS snaps 98/06/18.
4
5 struct a {
6         a();
7         void junk( float );
8         void junk( double );
9
10         void bar( double );
11         void bar( float );
12
13   void foo( void (a::*member)(float) ); // ERROR - candidate
14 };
15
16 a::a()
17 {
18         foo( &junk ); // ERROR - junk is an unqualified-id.
19         foo( &bar );  // ERROR - bar is an unqualified-id.
20 }