This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about __attribute__ (mis)handling
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- To: Ira Ruben <ira at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 13 Dec 2001 07:31:20 +1100
- Subject: Re: Question about __attribute__ (mis)handling
- References: <p05100300b83d61dfe807@[17.202.44.152]>
On 12-Dec-2001, Ira Ruben <ira@apple.com> wrote:
> I have a question about __attribute__ handling for C++ inline member
> functions. Given the following example:
...
> It turns out that an __attribute__ for inline members defined within
> their class is effectively ignored when the __attribute__ is placed
> before the function name. So should this be considered a bug?
IMHO yes: silently ignoring attributes is never right.
> should __attribute__ in that position even be allowed?
IMHO yes: it's allowed in that position for non-member functions, and
so for consistency it should be allowed there for member functions too.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.