[Bug c++/48525] -O0 produces incorrect results for inlined functions sharing the same name.
schwab@linux-m68k.org
gcc-bugzilla@gcc.gnu.org
Sat Apr 9 08:09:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48525
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2011-04-09 08:09:36 UTC ---
This violates the ODR.
[dcl.fct.spec]
4 An inline function shall be defined in every translation unit in which it is
used and shall have exactly the same definition in every case (3.2).
More information about the Gcc-bugs
mailing list