re PR c++/81154 (OpenMP with shared variable in a template class crash)
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Jun 2017 18:30:32 +0000 (20:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Jun 2017 18:30:32 +0000 (20:30 +0200)
commitcb8d1b01b3a2198c67d04a3a077bc7c55aaaa31c
treed5e64a08689456e01c506c14ba783b37db0d3621
parent1e55769b155009b134665f1455cf937ce30525f8
re PR c++/81154 (OpenMP with shared variable in a template class crash)

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: r249467
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr81154.C [new file with mode: 0644]