This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about __attribute__ (mis)handling


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]