re PR c++/88949 (ICE in expand_expr_real_1, at expr.c:10001 with -fopenmp)
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Jan 2019 22:33:52 +0000 (23:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Jan 2019 22:33:52 +0000 (23:33 +0100)
commit44f4e4182bb7954a117781e7f4f658af69dec3fd
tree5bcf9aac2ab5fb87ec37838b8be6f37402aca0c7
parent2f86f1f80d6e2ff1e26c3b637a4db534572ecf5c
re PR c++/88949 (ICE in expand_expr_real_1, at expr.c:10001 with -fopenmp)

PR c++/88949
* optimize.c (cxx_copy_decl): New function.
(clone_body): Use it instead of copy_decl_no_change.

* g++.dg/gomp/pr88949.C: New test.

From-SVN: r268127
gcc/cp/ChangeLog
gcc/cp/optimize.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr88949.C [new file with mode: 0644]