[Bug c++/70018] Possible issue around IPO and C++ inline functions

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 29 19:37:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70018

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
In C++ code, the one definition rule says that all TU that contains an inline
function, they need to have the same definition.  If they have different
definition, then the code is undefined at runtime and no diagnostic is
required.


More information about the Gcc-bugs mailing list