[Bug c++/77545] [7 Regression] ICE on valid C++11 code: in potential_constant_expression_1, at cp/constexpr.c:5480

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 20 15:13:00 GMT 2017


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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Jan 20 15:12:26 2017
New Revision: 244721

URL: https://gcc.gnu.org/viewcvs?rev=244721&root=gcc&view=rev
Log:
        PR c++/77545
        PR c++/77284
        * constexpr.c (potential_constant_expression_1): Handle CLEANUP_STMT.

        * g++.dg/cpp0x/range-for32.C: New test.
        * g++.dg/cpp0x/range-for33.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/range-for32.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/range-for33.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/constexpr.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list