------- Comment #9 from mmitchel at gcc dot gnu dot org 2005-10-30 22:44 ------- P2 is the right setting for this bug; it's popping up often enough to make it worth fixing. Disabling the inlining in the case that the argument type doesn't match (closely enough) the parameter type seems reasonable to me, even without introducing a subsequent runtime abort. That would be equivalent to the behavior if the function called appeared in a different translation unit.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16876