re PR c++/81130 (ICE OpenMP shared clause in gimplify_var_or_parm_decl, at gimplify...
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Jun 2017 10:58:00 +0000 (12:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Jun 2017 10:58:00 +0000 (12:58 +0200)
commitd54d1fc3bcd2d3dda563f9bd95b60299bc892041
treea1bba68984c40a32b45cc159beb1301d2f80d6f7
parent9fe9816bcd72e5ae5fe374d7483e4b5b0c618b22
re PR c++/81130 (ICE OpenMP shared clause in gimplify_var_or_parm_decl, at gimplify.c:2584)

PR c++/81130
* gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
with ctors/dtors if GOVD_SHARED is set.

* testsuite/libgomp.c++/pr81130.C: New test.

From-SVN: r249445
gcc/ChangeLog
gcc/gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr81130.C [new file with mode: 0644]