Commit 136dc16a by Jason Merrill

update

From-SVN: r21354
parent 25eb19ff
......@@ -10,12 +10,12 @@ struct a {
void bar( double );
void bar( float );
void foo( void (a::*member)(float) ); // ERROR -
void foo( void (a::*member)(float) ); // ERROR -
};
a::a()
{
foo( &junk ); // ERROR - junk is an unqualified-id.
foo( &bar ); // ERROR - bar is an unqualified-id.
foo( &bar ); // ERROR - bar is an unqualified-id. XFAIL *-*-*
}
......@@ -3,11 +3,14 @@
// Reported against EGCS snaps 98/06/28.
// Special g++ Options: -O -Wall -fgcse -frerun-loop-opt
//
// Compilation of this program with the flags g++ -Wall -O -fgcse -frerun-loop-opt
// or -O2 produces spurious warnings in the standard header <std/bastring.h>.
// Compilation of this program with the flags g++ -Wall -O -fgcse
// -frerun-loop-opt or -O2 produces spurious warnings in the standard
// header <std/bastring.h>.
//
// They vanish if the declaration of a::b is taken out.
// excess errors test - XFAIL *-*-*
#include <string>
string foo();
......
// Error: Internal compiler error on 1998/05/28 snapshot.
// Build don't link:
class foo {
typedef int sometype;
};
class foo {
typedef int sometype;
};
struct die : public foo::sometype {
};
struct die : public foo::sometype { // ERROR - invalid base type
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment