internal error: namespace, in-(class template) struct & enum

Alex Achenbach A.Achenbach@em.uni-frankfurt.de
Tue Dec 29 07:09:00 GMT 1998


Hi again.

Another internal error with egcs1.1.1, no special compiler args
(see attached ns-ct-class-enum-bug.out for details).

This one happens with definition of both a class and an enum inside
a class template inside a namespace.

Cheers
Alex
namespace X {	    	    // no internal error outside namespace

template <class C>  	 // no internal error for non-template struct
struct T {  	    	 // same for classes

    struct X { int a; }; // or class; required (no internal error without this)
    
    enum Y { b = 2 };	 // required (no internal error without this)
    
    int c;  	    	 // optional (internal error even without this)
};

T<int> p;   // required (no instantiation without this)

};

int main() { return 0; }


More information about the Gcc-bugs mailing list