]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/constexpr.c
PR c++/77545
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2017 17:47:04 +0000 (17:47 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2017 17:47:04 +0000 (17:47 +0000)
commitfd1303254ed9e6875a6b08a7bb8686f4e54e5d14
tree1e8977eb530936cd4c8f16bac4c5909d6bd3524b
parent8ccda24ac9e334cb5fbe18a87ed88cdb9c974107
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244062 138bc75d-0d04-0410-961f-82ee72b054a4
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]