This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] grokdeclarator cleanup (newb patch)
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