This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48525] -O0 produces incorrect results for inlined functions sharing the same name.
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 9 Apr 2011 08:09:41 +0000
- Subject: [Bug c++/48525] -O0 produces incorrect results for inlined functions sharing the same name.
- Auto-submitted: auto-generated
- References: <bug-48525-4@http.gcc.gnu.org/bugzilla/>
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).