Internal compiler error and false parse error with class-local typedef

Alexandre Oliva oliva@dcc.unicamp.br
Tue Sep 8 23:54:00 GMT 1998


Greg Badros <gjb@cs.washington.edu> writes:

> g++ -pedantic -c bug.cc

> I get:

> bug.cc: In method `T ClGenericLinearExpression<T>::coefficientFor(const class ClAbstractVariable &) const':
> bug.cc:15: parse error before `='

Your code is incorrect, indeed.  `typename' is required before
template-argument dependent type names, otherwise they should not be
interpreted as type names (although egcs sometimes does when not in
strict conformance mode)

> g++ -DCRASH -c bug.cc

> bug.cc:11: Internal compiler error.
> bug.cc:11: Please submit a full bug report to `egcs-bugs@cygnus.com'.

This is a real bug.  Thanks for your report.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list