Issue 108711
Summary [flang][debug] Wrong signature for functions with complex return type.
Labels flang
Assignees abidh
Reporter 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)
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to