[Bug lto/63350] LTO error: error: inlining failed in call to always_inline 'f': function body not available

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 24 03:20:00 GMT 2014


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

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++ all inline functions have to be defined in the translation unit you use
them.

>If I don't use LTO then the main loop is optimized out.

How can that be?



More information about the Gcc-bugs mailing list