C++ PATCH: Fix PR 7721 and PR 7803
Jason Merrill
jason@redhat.com
Fri Oct 11 11:00:00 GMT 2002
On 11 Oct 2002 19:34:25 +0200, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
> Jason Merrill <jason@redhat.com> writes:
>
> | On 09 Oct 2002 02:07:28 +0200, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
> |
> | > PRs C++/7721 and C++/7803
> | > * decl.c (grokdeclarator): Gracefully handle template-name as
> | > decl-specifier.
> |
> | I find it odd that the compiler would treat N::X as a declarator; I would
> | expect the parser to treat it as an invalid type.
>
> That was also my reaction. Meanwhile, I found that these PRs were
> already there in the form of PR C++/6863.
> Maybe should I change the diagnostic to read:
>
> "invalid use of template-name '%E' as type-specifier"
>
> ?
I thought about that, but I think it's best to leave it as it is.
> (Anyway, I will keep an eye on this when we merge with the ne parser
> branch).
Thanks.
Jason
More information about the Gcc-patches
mailing list