This is the mail archive of the gcc-help@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: Weak symbols and inline


On Thu, 2014-02-27 at 20:40 +0100, Marc Glisse wrote:
> On Thu, 27 Feb 2014, Paul Smith wrote:
> 
> > The function I'm inlining is actually global operator new.  It's not
> > legal to declare it static or in a namespace.
> 
> It is also explicitly illegal to mark it inline ;-)

???

It works fine in all the compilers I've tested (GCC, clang, MSVC 2010),
and I've seen tons of examples of doing this all over and no one has
mentioned that it is technically illegal.

Do you have a reference to the standard on this?



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