//Build don't link:
-template class x {}; // ERROR - not a template instantiation
+template class x {}; // ERROR - not a template instantiation XFAIL *-*-*
template<class T> struct foo3 {};
template<class T, other1_t n> struct foo3<T[n]>;
foo3<char> bar3;
-foo3<char[10]> baz3; // ERROR - incomplete type - XFAIL *-*-*
+foo3<char[10]> baz3; // ERROR - incomplete type -
typedef int other2_t;
template<class T> struct foo4 {};
template<class T, other1_t n> struct foo4<T[n]>;
foo4<char> bar4;
-foo4<char[10]> baz4; // ERROR - incomplete type - XFAIL *-*-*
+foo4<char[10]> baz4; // ERROR - incomplete type -
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 *-*-*
}
// 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
+};