https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80029
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-03-14
CC| |jakub at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think following change could cure it:
--- gcc/gimplify.c.jj 2017-02-16 08:36:56.000000000 +0100
+++ gcc/gimplify.c 2017-03-14 17:30:02.040865055 +0100
@@ -9236,6 +9236,7 @@ gimplify_oacc_declare (tree *expr_p, gim
clauses = OACC_DECLARE_CLAUSES (expr);
gimplify_scan_omp_clauses (&clauses, pre_p, ORT_TARGET_DATA, OACC_DECLARE);
+ gimplify_adjust_omp_clauses (pre_p, NULL, &clauses, OACC_DECLARE);
for (t = clauses; t; t = OMP_CLAUSE_CHAIN (t))
{
though can't test that right now.