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 c++/60218] [c++11] ICE using __bases for broken class hierarchy


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

--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Dec  9 16:59:26 2015
New Revision: 231460

URL: https://gcc.gnu.org/viewcvs?rev=231460&root=gcc&view=rev
Log:
/cp
2015-12-09  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/60218
        * semantics.c (calculate_bases_helper): Don't call dfs_walk_all
        when TYPE_BINFO (type) is null.
        (calculate_bases): Handle gracefully a null vector->length ().

/testsuite
2015-12-09  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/60218
        * g++.dg/ext/bases2.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/ext/bases2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.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]