[flang][openacc] Correctly lower acc routine in interface block (#71451)
commitedfaae87264c60f821432fb6e2eeb21e8c5de414
authorValentin Clement (バレンタイン クレメン) <clementval@gmail.com>
Tue, 7 Nov 2023 01:48:45 +0000 (6 17:48 -0800)
committerGitHub <noreply@github.com>
Tue, 7 Nov 2023 01:48:45 +0000 (6 17:48 -0800)
treeeb2393db76b5bda85bcb99f55ec971c1f19b78a4
parent5d3d08463ddae193c2b2c7d58e465dd397078269
[flang][openacc] Correctly lower acc routine in interface block (#71451)

When the acc routine directive was in an interface block in a
subroutine, the routine information was attached to the wrong
subroutine. This patch fixes this be retrieving the subroutine name in
the interface.
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-routine03.f90 [new file with mode: 0644]