This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Attribute questions


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]