[flang-commits] [flang] [flang] Add missing symbol names to the error message (PR #148888)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Tue Jul 15 09:52:20 PDT 2025
eugeneepshteyn wrote:
New output:
```
$ flang -c snfm_import_err02_2.f90
error: Semantic errors in snfm_import_err02_2.f90
./snfm_import_err02_2.f90:20:15: error: A distinct 'i' is already present in this scope
import i
^
./snfm_import_err02_2.f90:7:14: Previous declaration of 'i'
integer :: i
^
./snfm_import_err02_2.f90:11:14: Declaration of 'i' in host scope
real :: i
^
```
There are already semantic tests that check for this error, they are just checking the first error line.
https://github.com/llvm/llvm-project/pull/148888
More information about the flang-commits
mailing list