diff options
author | Robert Lipe <robertl@gcc.gnu.org> | 1998-06-30 08:31:49 +0000 |
---|---|---|
committer | Robert Lipe <robertl@gcc.gnu.org> | 1998-06-30 08:31:49 +0000 |
commit | 95d5a7815cd474644bb904b64e3b469219ab6ffc (patch) | |
tree | a3626c5cad23803587f0d569007ac70ebd8c6dd9 /gcc | |
parent | 4a6443a19d2f076f20119818b031dfb2d7533eab (diff) | |
download | gcc-95d5a7815cd474644bb904b64e3b469219ab6ffc.zip gcc-95d5a7815cd474644bb904b64e3b469219ab6ffc.tar.gz gcc-95d5a7815cd474644bb904b64e3b469219ab6ffc.tar.bz2 |
Changes from Alexandre and Klaus-Georg.
From-SVN: r20820
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.robertl/eb131.C | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C index 2209700..3accc2f 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C @@ -1,30 +1,21 @@ // Build don't link -// The call to a::foo() generates an error: -// eb131.C: In method `a::a()': -// eb131.C:26: no matching function for call to `a::foo (void (a::*)(double))' -// eb131.C:15: candidates are: a::foo(void (a::*)(float)) -// According to [over.over] in the CD2, &junk should resolve in this context. // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de> // Reported against EGCS snaps 98/06/18. struct a { - a(); - void junk(); - void junk( int ); - void junk( float ); - void junk( double ); + a(); + void junk( float ); + void junk( double ); - void foo( void (a::*member)(float) ); - void bar( void (*function)(float) ); -}; + void bar( double ); + void bar( float ); -void baz(); -void baz( int ); -void baz( float ); -void baz( double ); + void foo( void (a::*member)(float) ); +}; a::a() { - foo( &junk ); - bar( &baz ); + foo( &junk ); // ERROR: junk is an unqualified-id. + foo( &bar ); // ERROR: bar is an unqualified-id. } + |