RFC: Deprecate (a little bit) of C++ attribute syntax
Mark Mitchell
mark@codesourcery.com
Tue Aug 13 23:39:00 GMT 2002
--On Wednesday, August 14, 2002 02:08:17 AM +0200 Gabriel Dos Reis
<gdr@integrable-solutions.net> wrote:
Mark Mitchell <mark@codesourcery.com> writes:
| Currently, the C++ front end accepts this syntax:
|
| int x (3) __attribute__((unused));
[...]
| Therefore, I'm proposing deprecating this syntax in GCC 3.3 and
| removing it in GCC 3.4 (with the new parser).
| I'm not sure if I can
| get the old parser to actually warn about this (it's confused and
| thinks the parenthesized initializer is part of the declarator, but
| there is then later magic to untangle that!)
Do you think it is the same reason why it seems to ignore
attributes for nested typedef-names? I.e. in
struct A {
struct X { } __attribute__((__aligned__(4)));
typedef struct { } Y __attribute__((__aligned__(4)));
};
More information about the Gcc
mailing list