https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62282
Dmitry Petrov <dmitry.petroff at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #9 from Dmitry Petrov <dmitry.petroff at gmail dot com> --- Jakub, so you telling that different behaviour of gcc and g++ is ok in this case? With gcc inline + gnu_inline does not yields undefined references. And before you advice me to not use such constructions in my code, please note that problem appears in gperf output. So people have to use ugly #undef workarounds or even more ugly sed tricks or just don't use gperf's C output with g++ when debugging. And I'm sorry to be that insistent but >G++ 4.3 was the first release to support gnu_inline attribute in C++ is not true: g++-4.1 supported gnu_inline at some point: http://www.redhat.com/archives/fedora-extras-commits/2007-September/msg00089.html