https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78212
Bug ID: 78212 Summary: Fortran allocatable strings in derived type elements debug info Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: jakub at gcc dot gnu.org, jan.kratochvil at redhat dot com, unassigned at gcc dot gnu.org Depends on: 71906 Blocks: 24546 Target Milestone: --- +++ This bug was initially created as a clone of Bug #71906 +++ For: program pr71906 character(len=8) :: vard character(len=:), allocatable :: vare type t character(len=:), allocatable :: f end type type(t) :: varf allocate(character(len=10) :: vare) allocate(character(len=9) :: varf%f) vare = 'foo' call foo (vard, vare, varf) contains subroutine foo (vara, varb, varc) character(len=*) :: vara character(len=:), allocatable :: varb type(t) :: varc vara = 'bar' varb = 'baz' varc%f = 'str' end subroutine end program pr71906 we still don't create usable debug info for the f field - and it is likely not even expressible in dwarf5 right now. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24546 [Bug 24546] [meta-bug] gfortran debugging problems https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71906 [Bug 71906] [6/7 Regression] Fortran allocatable strings debug info type size regression