https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81130
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jun 22 11:23:19 2017 New Revision: 249526 URL: https://gcc.gnu.org/viewcvs?rev=249526&root=gcc&view=rev Log: Backported from mainline 2017-06-21 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-6-branch/libgomp/testsuite/libgomp.c++/pr81130.C Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/gimplify.c branches/gcc-6-branch/libgomp/ChangeLog