This is the mail archive of the gcc-patches@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]

PR57548 - Call to multiversioned function from global namespace


Hi,

See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57548

The ICE here is because of a multi-versioned function called from
global namespace and has no caller.  This ICEs in target hook
ix86_can_inline_p as caller is 0x0.  The following simple patch
attached fixes this problem.

        * cp/call.c (build_over_call):  Check if current_function_decl is
        NULL.
        * testsuite/g++.dg/ext/pr57548.C: New test.

Ok to submit?

Thanks
Sri

Attachment: pr57548_patch.txt
Description: Text document


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