[Bug fortran/120723] [13/14/15/16 Regression][OpenACC] '!$acc ... attach(scalar)' – ICE 'unexpected pointer mapping node'

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 20 01:59:03 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120723

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <jvdelisle@gcc.gnu.org>:

https://gcc.gnu.org/g:0af9613810ecdc991633f58f5dd81a574aa2af31

commit r16-8180-g0af9613810ecdc991633f58f5dd81a574aa2af31
Author: Christopher Albert <albert@tugraz.at>
Date:   Tue Mar 10 23:26:13 2026 +0100

    fortran: Fix scalar OpenACC attach/detach lowering [PR120723]

    Lower bare scalar OpenACC attach/detach clauses as direct attach operations
instead of emitting standalone pointer-mapping nodes.

            PR fortran/120723

    gcc/fortran/ChangeLog:

            * trans-openmp.cc (gfc_trans_omp_clauses): Handle bare scalar
            OpenACC attach/detach clauses without pointer-mapping nodes.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/goacc/pr120723.f90: New test.

    Signed-off-by: Christopher Albert <albert@tugraz.at>


More information about the Gcc-bugs mailing list