[Bug c++/81154] OpenMP with shared variable in a template class crash
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 16 18:32:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81154
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 16 18:31:58 2017
New Revision: 252878
URL: https://gcc.gnu.org/viewcvs?rev=252878&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/gomp/pr81154.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/semantics.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list