This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Attribute questions
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Attribute questions
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 02 Jul 2001 16:11:31 +0100
- Cc: Mark Mitchell <mark at codesourcery dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- References: <Pine.LNX.4.33.0106300115570.15408-100000@kern.srcf.societies.cam.ac.uk>
>>>>> "Joseph" == Joseph S Myers <jsm28@cam.ac.uk> writes:
> This change (revision 1.240 of decl.c, by Jason Merrill) was apparently
> for
> int (__cdecl * __cdecl f ())();
> which (according to the documentation I wrote - none was added by that
> patch) means
> function returning cdecl pointer to cdecl function returning int
> I guess the patch was meant to make it mean
> cdecl function returning pointer to cdecl function returning int
Apparently so. I can't remember what I was thinking; it seems clear now
that prefix attributes should be treated syntactially like
declspecs/cv-quals, and bind to the left.
> I must suspect that my documentation rather than the C++ front end is
> correct here, and implement what I've documented for C.
Please.
Jason