Skip to content

[flang][debug] Lower bound of array for derived type member is ignored. #113178

Closed
@abidh

Description

@abidh

Consider the following program.

module m
 type t1
   integer :: elm(2:6)
  end type
 type(t1) :: var
end module

program test
  use m
  var%elm(:) = 2
  print *, var%elm
end

The stopped at the print line, this is what GDB shows for the type of elm while it should have been type = integer (2:6)

(gdb) ptype var%elm
type = integer (5)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions