Segmentation fault when passing internal function as argument
问题 I have some code that passes an internal function of the main program as an argument to a function: when the function that been passed is eventually called it causes a segmentation fault. This only occurs when I use Windows Subsystem for Linux (I'm using Ubuntu 16 on WSL); running on native Linux or Mac machines this does not occur. A minimal example that crashes: module test1 implicit none contains subroutine x(ff,y) interface real function ff(y) real, intent(in) :: y end function ff end