Skip to content

[flang][debug] The kind information for the type is ignored. #160890

@abidh

Description

@abidh

Consider the following program.

PROGRAM  test
  real(kind =4) :: a
  real(kind =8) :: b
  a = 1
  b = 2
  print *, a
  print *, b
END PROGRAM test

When compiled with flang and debugged in the GDB, the type of both a and b are same.

(gdb) ptype a
type = real
(gdb) ptype b
type = real

When similar code is compiled with gfortran, it shows the following in the GDB.

(gdb) ptype a
type = real(kind=4)
(gdb) ptype b
type = real(kind=8)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions