]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR c++/81154 (OpenMP with shared variable in a template class crash)
authorJakub Jelinek <jakub@gcc.gnu.org>
Thu, 22 Jun 2017 11:34:39 +0000 (13:34 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 22 Jun 2017 11:34:39 +0000 (13:34 +0200)
Backported from mainline
2017-06-21  Jakub Jelinek  <jakub@redhat.com>

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

gcc/cp/ChangeLog
gcc/testsuite/ChangeLog

index e8acb90b6b54cbf008d086785aa5323228c2c231..ba4751e80cef97cfae47bb57e15fa0f960f076f2 100644 (file)
@@ -3,9 +3,10 @@
        Backported from mainline
        2017-06-21  Jakub Jelinek  <jakub@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.
+       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  <jakub@redhat.com>
 
index bdc2490b4bc11eb4b37bab7702dc510a1d310eb0..cd051e41b432901f0fb21eb06ced65f94946a4ec 100644 (file)
@@ -3,6 +3,9 @@
        Backported from mainline
        2017-06-21  Jakub Jelinek  <jakub@redhat.com>
 
+       PR c++/81154
+       * g++.dg/gomp/pr81154.C: New test.
+
        PR c++/81130
        * testsuite/libgomp.c++/pr81130.C: New test.