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 lto/70187] [6 Regression] ICE (segfault) in lto1 with -Wsuggest-final-methods/-Wsuggest-final-types


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

--- Comment #4 from vries at gcc dot gnu.org ---
Author: vries
Date: Wed Mar 16 10:21:27 2016
New Revision: 234253

URL: https://gcc.gnu.org/viewcvs?rev=234253&root=gcc&view=rev
Log:
Safely use nodes[0] in possible_polymorphic_call_targets

2016-03-16  Tom de Vries  <tom@codesourcery.com>

        PR lto/70187
        * ipa-devirt.c (possible_polymorphic_call_targets): Move
        nodes.length () == 1 test to before first nodes[0] access.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-devirt.c

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