This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Internal compiler error and false parse error with class-local typedef
- To: Greg Badros <gjb at cs dot washington dot edu>
- Subject: Re: Internal compiler error and false parse error with class-local typedef
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 09 Sep 1998 00:56:23 z
- Cc: egcs-bugs at cygnus dot com
- References: <qrrvhn16qhx.fsf@demille.cs.washington.edu>
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