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 ipa/66223] [5/6 Regression] Diagnostic of pure virtual function call broken, including __cxa_pure_virtual


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

--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Tue Jan 19 16:49:50 2016
New Revision: 232572

URL: https://gcc.gnu.org/viewcvs?rev=232572&root=gcc&view=rev
Log:

        PR ipa/66223
        * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
        (maybe_record_node): Record cxa_pure_virtual as the only possible
        target if there are not ohter candidates.
        (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.

        * g++.dg/ipa/devirt-50.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/ipa/devirt-50.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-devirt.c
    trunk/gcc/testsuite/ChangeLog

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