-Winline: function body not available

Martin Sebor sebor@roguewave.com
Sat Mar 26 01:50:00 GMT 2005


Andrew Pinski wrote:
> 
> On Mar 25, 2005, at 7:59 PM, Martin Sebor wrote:
> 
>> Could someone help me understand what's causing the following
>> warning so that I can silence it? Gcc 3.4.3 emits it for an
>> implicitly inline one-line definition of the function (ctor,
>> actually, see below), so I'm not sure what the "function body
>> not available" bit is supposed to mean. The base ctor is also
>> a one liner defined completely inline. The base derives from
>> two other class, one of whose ctor is outlined and the other
>> is trivial (i.e., compiler generated).
>>
>> I've searched Bugzilla but couldn't find anything relevant.
> 
> 
> This is either PR 17248 or PR 14950.  This is only a bug in 3.4.x.

Thanks for the pointers. I saw those two but they seemed different.
I don't get the "sorry, unimplemented" and I don't have any
__attribute__((always_inline)) anywhere. But from 14950, comment
#13 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14950#c13) it
sounds like it actually might be the same thing (I hadn't read
that far before).

In any case, it doesn't seem like there is a known way to silence
the warning, is there? (Other than by a command line switch).

Martin



More information about the Gcc-bugs mailing list