2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb131.C
blob75aab60a8ddc8c8613c1e91e018af04b6b2c4130
1 // { dg-do assemble  }
2 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de> 
3 // Reported against EGCS snaps 98/06/18.
5 struct a {
6         a();
7         void junk( float );
8         void junk( double );
10         void bar( double );
11         void bar( float );
13   void foo( void (a::*member)(float) );   // { dg-error "" } candidate
16 a::a()
18         foo( &junk ); // { dg-error "" } junk is an unqualified-id.
19         foo( &bar );  // { dg-error "" } bar is an unqualified-id.