Re: Weak symbols and inline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 27 Feb 2014, Paul Smith wrote:

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?

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59894#c1

--
Marc Glisse




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux