From: Jakub Jelinek Date: Thu, 22 Jun 2017 11:34:39 +0000 (+0200) Subject: backport: re PR c++/81154 (OpenMP with shared variable in a template class crash) X-Git-Tag: releases/gcc-6.4.0~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56fbae912a088e769b17c4da41ed342ae03d131f;p=thirdparty%2Fgcc.git backport: re PR c++/81154 (OpenMP with shared variable in a template class crash) Backported from mainline 2017-06-21 Jakub Jelinek PR c++/81154 * semantics.c (handle_omp_array_sections_1, finish_omp_clauses): Complain about t not being a variable if t is OVERLOAD even when processing_template_decl. * g++.dg/gomp/pr81154.C: New test. From-SVN: r249539 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e8acb90b6b54..ba4751e80cef 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -3,9 +3,10 @@ Backported from mainline 2017-06-21 Jakub Jelinek - PR c++/81130 - * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types - with ctors/dtors if GOVD_SHARED is set. + PR c++/81154 + * semantics.c (handle_omp_array_sections_1, finish_omp_clauses): + Complain about t not being a variable if t is OVERLOAD even + when processing_template_decl. 2017-06-13 Jakub Jelinek diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bdc2490b4bc1..cd051e41b432 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -3,6 +3,9 @@ Backported from mainline 2017-06-21 Jakub Jelinek + PR c++/81154 + * g++.dg/gomp/pr81154.C: New test. + PR c++/81130 * testsuite/libgomp.c++/pr81130.C: New test.