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
program main
procedure(say_something), pointer :: proc
proc => say_something
call proc("Hello from proc!")
containssubroutinesay_something(message)
character(len=*),intent(in) :: message
print*, message
endsubroutineend program main
Output
(base) saurabh-kumar@Awadh:~/Projects/System/lfortran$ gfortran test.f90 && ./a.out/usr/bin/ld: warning: /tmp/ccltcx46.o: requires executable stack (because the .note.GNU-stack section is executable) Hello from proc!(base) saurabh-kumar@Awadh:~/Projects/System/lfortran$ lfortran test.f90semantic error: Procedure type 'say_something' not declared --> test.f90:3:4 |3 | procedure(say_something), pointer :: proc | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Note: Please report unclear, confusing or incorrect messages as bugs athttps://github.com/lfortran/lfortran/issues.
The text was updated successfully, but these errors were encountered:
Minimal Reproducible Example
Output
The text was updated successfully, but these errors were encountered: