[flang-commits] [flang] [flang] Represent use statement in fir. (PR #168106)
Shunsuke Watanabe via flang-commits
flang-commits at lists.llvm.org
Sun Jan 4 22:48:14 PST 2026
s-watanabe314 wrote:
After this patch, specifying `-g` now causes a "not yet implemented" error in our tests. Is this the expected behavior, or is it planned to be fixed in another patch? I would appreciate it if you could take a look.
- 0017_0029.f90
```Fortran
module module_1st
integer ::MPI_INTEGER=1
integer :: MPI=2,ssss=3
end module module_1st
module module_2nd
integer :: DP ,ssss
end module module_2nd
module module_3rd
use module_1st
use module_2nd
integer :: itmp
end module module_3rd
use module_3rd,ONLY :ssss
use module_3rd,ONLY :
use module_1st
implicit none
if (MPI_INTEGER.ne.1) print *,'ng'
if (MPI.ne.2) print *,'ng'
print *,'pass'
end
```
- result
```
$ flang 0017_0029.f90 -O0 -g
LLVM ERROR: /PATH/TO/LLVM/llvm-project/flang/lib/Lower/Mangler.cpp:182: not yet implemented: symbol mangling
```
Similarly, the following tests also produce NYI errors:
[0017_0029.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0017/0017_0029.f90)
[0017_0030.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0017/0017_0030.f90)
[0167_0003.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0167/0167_0003.f90)
[0234_0165.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0234/0234_0165.f90)
[0234_0166.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0234/0234_0166.f90)
[0235_0031.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0235/0235_0031.f90)
[0235_0032.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0235/0235_0032.f90)
[0324_0023.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0324/0324_0023.f90)
[0540_0168.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0540/0540_0168.f90)
[0540_0169.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0540/0540_0169.f90)
[0545_0038.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0038.f90)
[0545_0039.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0039.f90)
[0545_0043.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0043.f90)
[0545_0044.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0044.f90)
[0545_0045.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0045.f90)
[0545_0046.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0046.f90)
[0545_0047.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0047.f90)
[0545_0048.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0048.f90)
[0545_0050.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0050.f90)
[0545_0051.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0051.f90)
[0545_0052.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0052.f90)
[0545_0053.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0053.f90)
[0545_0054.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0054.f90)
[0545_0055.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0055.f90)
[0545_0056.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0545/0545_0056.f90)
[0743_0077.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0743/0743_0077.f90)
[0979_0222.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0979/0979_0222.f90)
https://github.com/llvm/llvm-project/pull/168106
More information about the flang-commits
mailing list