This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal compiler error with typedef


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]