From-SVN: r21354
This commit is contained in:
Jason Merrill 1998-07-23 15:11:58 -04:00
parent 25eb19ff0a
commit 136dc16a52
3 changed files with 13 additions and 10 deletions

View File

@ -16,6 +16,6 @@ struct a {
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 *-*-*
}

View File

@ -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();

View File

@ -1,9 +1,9 @@
// 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
};