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

--- Comment #7 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

Reply via email to