Parse error related to templates
Alexandre Oliva
oliva@dcc.unicamp.br
Thu Oct 8 13:47:00 GMT 1998
tveldhui <tveldhui@extreme.indiana.edu> writes:
> This program gives a parse error with egcs 1.1b.
Yup, it's a problem in the parser. If the ?: expression used as a
template argument is not enclosed in parentheses, and angle bracket is
parsed as a greater-than operator. Just enclose the whole template
argument within parentheses as a workaround. I've added a simplified
version of your testcase to the testsuite.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list