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  <pola...@redhat.com>
                    Jakub Jelinek  <ja...@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

Reply via email to