[Bug c++/83659] [7 Regression] ICE on compilable C++ code: in tree_to_shwi, at tree.c:6821

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 3 13:28:00 GMT 2018


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Mar  3 13:27:47 2018
New Revision: 258186

URL: https://gcc.gnu.org/viewcvs?rev=258186&root=gcc&view=rev
Log:
        Backported from mainline
        2018-02-09  Marek Polacek  <polacek@redhat.com>
                    Jakub Jelinek  <jakub@redhat.com>

        PR c++/83659
        * fold-const.c (fold_indirect_ref_1): Use VECTOR_TYPE_P macro.
        Formatting fixes.  Verify first that tree_fits_shwi_p (op01).
        Sync some changes from cxx_fold_indirect_ref.

        * constexpr.c (cxx_fold_indirect_ref): Sync some changes from
        fold_indirect_ref_1.  Verify first that tree_fits_shwi_p (op01).
        Formatting fixes.

        * g++.dg/torture/pr83659.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/torture/pr83659.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/constexpr.c
    branches/gcc-7-branch/gcc/fold-const.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list