Issue 108001
Summary [flang][debug] Derived types with allocatable members are not handled correctly.
Labels flang
Assignees abidh
Reporter abidh
    Currently, flang does not generate debug information for any allocatable member of the derived type.  Any members coming after that are also skipped. Similar issue exist with pointer members.

```
module m
 type t1
   integer :: v1
   integer, allocatable :: p(:)
   integer :: v2
 end type
 type(t1) :: var
end module

program test
  use m
  var%v1 = 2
  allocate(var%p(100))
  var%v2 = 3
  print *, var%v1, var%v2
END

and this what GDB as type of the var.

(gdb) ptype var
type = Type t1
    integer :: v1
End Type t1
```

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

Reply via email to