re PR c++/77545 (ICE on valid C++11 code: in potential_constant_expression_1, at...
authorMarek Polacek <polacek@redhat.com>
Wed, 4 Jan 2017 17:47:04 +0000 (17:47 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 4 Jan 2017 17:47:04 +0000 (17:47 +0000)
commitbaf9ebc8cc9c34becea5be1146c48e2cb99d2ea5
tree1e8977eb530936cd4c8f16bac4c5909d6bd3524b
parent5dd9a9d0c9294455077ba6401701fd3566dcf07c
re PR c++/77545 (ICE on valid C++11 code: in potential_constant_expression_1, at cp/constexpr.c:5480)

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.

From-SVN: r244062
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/range-for32.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for33.C [new file with mode: 0644]