You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module mod
type cart
integer :: x1
end type
contains
type(cart) function build(x)
integer :: x
build%x1 = x
end function
end module
program function_calls
use mod
implicit none
type(cart) :: b
b = build(4)
print *, b
end program
This is what GDB shows for the type of the build function. Notice return type and first argument.
(gdb) ptype mod::build
type = void (Type cart, integer)
This seems to be done in AbstractResultOpt pass but debug info needs to have the function signature as it was in the source.
The text was updated successfully, but these errors were encountered:
module mod
type cart
integer :: x1
end type
contains
type(cart) function build(x)
integer :: x
build%x1 = x
end function
end module
program function_calls
use mod
implicit none
type(cart) :: b
b = build(4)
print *, b
end program
This is what GDB shows for the type of the build function. Notice return type and first argument.
(gdb) ptype mod::build
type = void (Type cart, integer)
This seems to be done in AbstractResultOpt pass but debug info needs to have the function signature as it was in the source.
module mod
type cart
integer :: x1
end type
contains
type(cart) function build(x)
integer :: x
build%x1 = x
end function
end module
program function_calls
use mod
implicit none
type(cart) :: b
b = build(4)
print *, b
end program
This is what GDB shows for the type of the build function. Notice return type and first argument.
(gdb) ptype mod::build
type = void (Type cart, integer)
This seems to be done in AbstractResultOpt pass but debug info needs to have the function signature as it was in the source.
Consider the following code
This is what GDB shows for the type of the build function. Notice return type and first argument.
This seems to be done in
AbstractResultOpt
pass but debug info needs to have the function signature as it was in the source.The text was updated successfully, but these errors were encountered: