-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Description
Consider the following 2 files.
PROGRAM test
use mod
integer c
var1 = 20
call get(c)
print *, c
END PROGRAM test
module mod
integer var1
contains
subroutine get(a)
integer a
a = var1
end subroutine
end module
Compile them as follows:
$ flang -g -O0 test1.f90 test.f9 -o test
In GDB, you can see that there is duplicate information about the module.
$ gdb -q test
Reading symbols from test...
(gdb) start
...
Temporary breakpoint 1, TEST () at test.f90:5
5 var1 = 20
(gdb) info modules
All defined modules:
File test.f90:
2: mod
File test1.f90:
3: mod