This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/62282] [4.8/4.9/5 Regression] Undefined reference with __inline __attribute(__gnu_inline__) with -O0


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'd say it is a user bug, you shouldn't use gnu_inline attribute on a function
that is not extern inline.  Why do you want that?  Either you want extern
inline __attribute__((gnu_inline)), which will act as the GNU extern inline
function (if inlined successfully, fine, otherwise you need to supply external
definition), or you want normal C++ inline semantics.  inline
__attribute__((gnu_inline)) doesn't make sense.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]