This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7585: Attributes for nested typedef-name ignored
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 31 Oct 2002 19:26:00 -0000
- Subject: Re: c++/7585: Attributes for nested typedef-name ignored
- Reply-to: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
The following reply was made to PR c++/7585; it has been noted by GNATS.
From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
Cc: <gcc-bugs@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org>
Subject: Re: c++/7585: Attributes for nested typedef-name ignored
Date: Thu, 31 Oct 2002 19:16:35 +0000 (GMT)
On Thu, 31 Oct 2002, Wolfgang Bangerth wrote:
> > Said differently, what do you envision for the "right" syntax for
> >
> > typedef unsigned char type[sizeof(int)]
> > __attribute__((__aligned__(__alignof__(int))));
typedef unsigned char
(__attribute__((__aligned__(__alignof__(int)))) type)[sizeof(int)]
(supposing that the attribute is to be applied to the array type).
> I think it would help to have a formal specification of attribute
> placement somewhere. Although it would probably be so complicated that
> nobody would want to read it...
"Attribute Syntax" in the manual. It does presume you fully understand
the formal definition in the C standard of declarator syntax, before you
can understand how it is extended with attributes.
--
Joseph S. Myers
jsm28@cam.ac.uk