Re: [PATCH, fortran] [13/14/15/16 Regression] [OpenACC] '!$acc ... attach(scalar)' – ICE 'un expected pointer mapping node'

Jerry D <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
Committed:

commit 0af9613810ecdc991633f58f5dd81a574aa2af31 (HEAD -> master, origin/master, 
origin/HEAD)
Author: Christopher Albert <[email protected]>
Date:   Tue Mar 10 23:26:13 2026 +0100

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


On 3/17/26 4:10 PM, Jerry D wrote:
> The attached patch here regression tested on x86_64 with make check-fortran.
> 
> PASS: gfortran.dg/goacc/pr120723.f90   -O  (test for excess errors)
> PASS: gfortran.dg/goacc/pr120723.f90   -O   scan-tree-dump-times original "(? 
> n)#pragma acc enter data map\\(attach:a \\[bias: 0\\]\\) map\\(attach:c \\[bias: 
> 0\\]\\);$" 1
> PASS: gfortran.dg/goacc/pr120723.f90   -O   scan-tree-dump-times original "(? 
> n)#pragma acc exit data map\\(detach:a \\[bias: 0\\]\\) map\\(detach:c \\[bias: 
> 0\\]\\);$" 1
> 
> OK for mainline and later backport?
> 
>  From 5fae5d7c4e9c25d18c52a14d5ff8779030908ff5 Mon Sep 17 00:00:00 2001
> From: Christopher Albert <[email protected]>
> Date: Tue, 10 Mar 2026 23:26:13 +0100
> Subject: [PATCH] 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 <[email protected]>
> ---
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.