[Patch] grokdeclarator cleanup (newb patch)
Zack Weinberg
zack@codesourcery.com
Tue Apr 20 17:16:00 GMT 2004
Jason Merrill <jason@redhat.com> writes:
> On Mon, 19 Apr 2004 18:34:21 -0700, Zack Weinberg <zack@codesourcery.com> wrote:
>
>> Note further that the %D in this
>>
>> error ("declarator-id missing; using reserved word `%D'", dname);
>>
>> is incorrect - %D takes a DECL node. It should be %E.
>
> When I wrote the extended format code, %D was correct for the name of a
> decl.
dname here is an IDENTIFIER_NODE, not a DECL.
> %E is for expressions. Has this changed?
Um. In the C front end, %E is for IDENTIFIER_NODEs. I should have
checked what it is in C++.
zw
More information about the Gcc-patches
mailing list