Parse error related to templates

Mumit Khan khan@xraylith.wisc.edu
Thu Oct 8 10:58:00 GMT 1998


tveldhui <tveldhui@extreme.indiana.edu> writes:
> This program gives a parse error with egcs 1.1b.  As far as I know, it 
> is correct (EDG parsers it).  It ought to compile successfully with
> -ftemplate-depth-105.
> 
> // The infamous "3x+1" problem

There was a similar bug report (the infamous "factorial" problem ;-), and
I believe Alexandre posted a workaround -- use extra parens for the 
template arg.

Regards,
Mumit




More information about the Gcc-bugs mailing list