Skip to content

[flang][debug] Wrong signature for functions with complex return type. #108711

Closed
@abidh

Description

@abidh

See the following example. The type of the fn as shown by GDB is wrong. It shows integer as return type.

complex function fn(a)
    complex, intent(in) :: a
    fn = a
end function

program function_calls
    implicit none
    interface
        complex function fn(a)
            complex, intent(in) :: a
        end function
    end interface
    complex :: b, c
    c = fn(b)
    print *, c
end program
(gdb) ptype fn
type = integer (complex)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions