This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] grokdeclarator cleanup (newb patch)
On Tue, 20 Apr 2004 10:16:28 -0700, Zack Weinberg <zack@codesourcery.com> wrote:
> 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.
Yes. But since it is the name of a decl, %D is still the right choice for
the C++ front end.
Jason