c++/9364: [3.4 regression] ICE in make_typename_type, at cp/decl.c:5507 with new parser
Giovanni Bajo
giovannibajo@libero.it
Sat May 3 16:07:00 GMT 2003
Hi Kriang,
about your fix for:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9364
Currently, I get:
pr9364.cpp:1: error: using `typename' outside of template
pr9364.cpp:1: error: variable or field `find' declared void
pr9364.cpp:1: error: expected nested-name-specifier
pr9364.cpp:1: error: expected identifier
pr9364.cpp:1: error: expected `('
Would it be possible to refine the error message? The first line is
obviously correct, but the other 4 are a bit confusing. I think one good
solution would be to make the compiler "ignore" somehow the keyword
'typename' used in that context (outside a template), so that the line
should not produce any further error.
Giovanni Bajo
More information about the Gcc-bugs
mailing list