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]

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


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



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