https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81130
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jun 22 11:24:43 2017 New Revision: 249527 URL: https://gcc.gnu.org/viewcvs?rev=249527&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/gcc/testsuite/g++.dg/gomp/pr81154.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/semantics.c branches/gcc-6-branch/gcc/testsuite/ChangeLog