[flang-commits] [flang] [flang][pft] visit original symbol in acc use_device (PR #194588)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Tue Apr 28 06:23:05 PDT 2026


================
@@ -0,0 +1,45 @@
+! RUN: %flang_fc1 -emit-hlfir -fopenacc %s -o - | FileCheck %s
+
+! Test that module symbols used inside the use_device clause
+! in procedures from that same module are correctly instantiated.
+
----------------
eugeneepshteyn wrote:

Since the fix involves searching parent's scope, would it be worth adding a test with a submodule?

https://github.com/llvm/llvm-project/pull/194588


More information about the flang-commits mailing list