c++/9364: [3.4 regression] ICE in make_typename_type, at cp/decl.c:5507 with new parser

Kriang Lerdsuwanakij lerdsuwa@users.sourceforge.net
Sun May 4 09:52:00 GMT 2003


Giovanni Bajo wrote:

>
>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.
>
I think having an accurate first error message is good enough.
It doesn't justified dealing with that specific error now as
it's very hard to get it right.

--Kriang






More information about the Gcc-bugs mailing list