[flang-commits] [flang] [flang][debug] Handle USE statements inside modules (PR #186184)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Mon Apr 20 09:53:03 PDT 2026


abidh wrote:

This is the GDB output for this testcase with this patch applied.

```
foo () at main.f90:4
4         print *, i_from_b
(gdb) p i_from_a
$1 = 2
(gdb) p i_from_b
No symbol "i_from_b" in current context.
(gdb) p moda::i_from_a
$2 = 2
(gdb) p modb::i_from_b
$3 = 1
```

We have debug information for both `moda` and `modb` but there is no import information about modb in main.

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


More information about the flang-commits mailing list