This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79664] ICE with #pragma omp parallel in constexpr function
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 May 2017 21:32:09 +0000
- Subject: [Bug c++/79664] ICE with #pragma omp parallel in constexpr function
- Auto-submitted: auto-generated
- References: <bug-79664-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79664
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May 5 21:31:37 2017
New Revision: 247675
URL: https://gcc.gnu.org/viewcvs?rev=247675&root=gcc&view=rev
Log:
Backported from mainline
2017-02-22 Jakub Jelinek <jakub@redhat.com>
PR c++/79664
* parser.c (cp_parser_omp_teams, cp_parser_omp_target): Use
SET_EXPR_LOCATION on OMP_TARGET/OMP_TEAMS tree.
* constexpr.c (potential_constant_expression_1): Handle
OMP_*, OACC_* and CILK_* trees.
* g++.dg/cpp1y/constexpr-throw.C: Adjust expected diagnostic location.
* g++.dg/gomp/pr79664.C: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/gomp/pr79664.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/constexpr.c
branches/gcc-6-branch/gcc/cp/parser.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-throw.C