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
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>
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.