This is the mail archive of the
mailing list for the GCC project.
Re: RFC: Deprecate (a little bit) of C++ attribute syntax
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "jason at redhat dot com" <jason at redhat dot com>, "nathan at codesourcery dot com" <nathan at codesourcery dot com>, "gdr at codesourcery dot com" <gdr at codesourcery dot com>
- Date: Tue, 13 Aug 2002 23:44:15 -0700
- Subject: Re: RFC: Deprecate (a little bit) of C++ attribute syntax
--On Wednesday, August 14, 2002 07:23:51 AM +0100 Neil Booth
Mark Mitchell wrote:-
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!) -- but I will try.
I'm all for making the attribute syntax tighter. Can you enforce
the same rules for C too? Otherwise the C/C++ merge will be a mess.
This isn't an issue in C because C doesn't have the parenthesized
initializer syntax. (No construtors in C.)
Mark Mitchell firstname.lastname@example.org
CodeSourcery, LLC http://www.codesourcery.com