Internal compiler error and false parse error with class-local typedef
Greg Badros
gjb@cs.washington.edu
Wed Sep 9 09:12:00 GMT 1998
Alexandre Oliva <oliva@dcc.unicamp.br> writes:
> 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)
Ahh... I overlooked that rule because it's been unused for so long (and
I thought I was near an edge case because of the legitimate bug below.)
> > 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.
You're very welcome. And thank you all for your hard work on egcs --
it's made C++ useful to me again!
THANKS!
Greg
More information about the Gcc-bugs
mailing list