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

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Nov 25 16:42:18 2015
New Revision: 230887

URL: https://gcc.gnu.org/viewcvs?rev=230887&root=gcc&view=rev
Log:
/cp
2015-11-25  Markus Trippelsdorf  <mar...@trippelsdorf.de>
            Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/68087
        * constexpr.c (cxx_eval_array_reference): Use tree_fits_shwi_p before
        tree_to_shwi to avoid ICEs.

/testsuite
2015-11-25  Markus Trippelsdorf  <mar...@trippelsdorf.de>
            Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/68087
        * g++.dg/cpp0x/constexpr-array13.C: New.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-array13.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/constexpr.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

Reply via email to