Question about __attribute__ (mis)handling
Fergus Henderson
fjh@cs.mu.oz.au
Wed Dec 12 12:43:00 GMT 2001
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.
More information about the Gcc
mailing list