re PR c/44715 (Break in increment expression of "for" statement inconsistent with...
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Jan 2019 14:41:16 +0000 (15:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Jan 2019 14:41:16 +0000 (15:41 +0100)
commit372e6e6bac4046d87e92894535b80f28409e9d3f
tree99fe79352a4af99969da0d773320d576ce4db3f6
parentd0f2db231639f73802c07f03cf4a77125a0daeb7
re PR c/44715 (Break in increment expression of "for" statement inconsistent with g++)

PR c/44715
* cp-gimplify.c (genericize_cp_loop): Call begin_bc_block only
after genericizing cond and incr expressions.

* doc/extend.texi: Document break and continue behavior in
statement expressions.

* c-c++-common/pr44715.c: New test.

From-SVN: r268188
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr44715.c [new file with mode: 0644]