Issue 160907
Summary [flang][debug] Duplicate module information.
Labels flang
Assignees
Reporter abidh
    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
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to