Internal compiler error with typedef

Robert Bihlmeyer e9426626@stud2.tuwien.ac.at
Fri Mar 6 07:40:00 GMT 1998


Hi,

compiling the following code snippet with an egcs built from today's
CVS sources (on sparc-sun-solaris2.6) results in an internal compiler
error:

// test.C
#include <vector>

template <class T>
class C {
    typedef /*typename*/ vector<T>::iterator iterator;
    };

void f(const C<int>&);

void g() {
    f(0);
    }
// end of test.C

Un-commenting the "typename" removes the error.

	Robbe

-- 
Robert Bihlmeyer	reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at>	< http://stud2.tuwien.ac.at/~e9426626/sig.html >



More information about the Gcc-bugs mailing list