This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ constant expressions in __attribute__
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Piotr Wyderski <piotr dot wyderski at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 4 Mar 2009 15:37:56 +0000 (UTC)
- Subject: Re: C++ constant expressions in __attribute__
- References: <9f8a01cd0903040614r4d98d035qf7a74fb65a7616dc@mail.gmail.com>
On Wed, 4 Mar 2009, Piotr Wyderski wrote:
> Hello,
>
> Is it possible to allow C++ constant expressions (currently static const,
> and C++0x constexpr in the future) to be used as __attribute__ parameters
> in the upcomming version of GCC? In my code I have the following construction:
What does C++0x say about this, if any C++0x [[]] attributes have integer
parameters?
(Not that I am impressed with the incompatibilities of C++0x attributes
with existing practice or their ignoring all the hard issues with
attributes that have actually come up in GCC implementation experience -
along with the proposals having long lists of people they were discussed
with, none of whom have been involved in any of the discussions of these
issues with attributes in GCC.)
--
Joseph S. Myers
joseph@codesourcery.com