Open
Description
Version of flang : 21.0.0(7500cead4e000d82d62f99f2896ffa94ee08ff7e)/AArch64
In the attached program, the second and third compilation messages are outputted with %s
instead of variable (i)
.
The following are the test program and Flang compilation result.
snfm_import_err02_2.f90:
program main
call test01()
print *,"pass"
end program main
module mod1
integer :: i
end module mod1
module mod2
real :: i
end module mod2
subroutine test01()
use mod2
use mod1
interface
subroutine subb()
use mod1
import i
end subroutine subb
end interface
end subroutine test01
$ flang 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 '%s'
integer :: i
^
./snfm_import_err02_2.f90:11:14: Declaration of '%s' in host scope
real :: i
^
$
Metadata
Metadata
Assignees
Type
Projects
Status
Todo