infinite recursion in parser, 1.1.1 prerelease

Ewgenij Gawrilow gawrilow@math.TU-Berlin.DE
Tue Nov 10 08:46:00 GMT 1998


Andris wrote:

> I don't see this problem with DJGPP ports of
> egcs-2.91.57 and 2.91.58. gcc only founds errors
> in that code.
> ...
> t1.cc:4: explicit instantiation of non-template type `A'
> t1.cc:11: explicit instantiation of non-template type `B'

This shows that different egcs ports have different diseases, but the problem
remains. Neither are classes `A' and `B' non-template, nor an attempt is made
to instantiate them.

But this diagnostics awakes a suspection: have you copied the program text from 
the WWW browser window with a mouse? The angle brackets in the template
statements can get swallowed, which yields a completely different code, really
looking like an explicit template instantiation.

With best regards,
Ewgenij Gawrilow



More information about the Gcc-bugs mailing list