[J3] Is this standard-conforming?
Damian Rouson
damian at sourceryinstitute.org
Thu Jul 26 06:12:53 EDT 2018
One processor accepts the code below. Three others generate error messages
related to the binding label c_name and either report a syntax error or
report that the binding label is a variable that does not reduce to a
constant expression.
Damian
program main
implicit none
character(len=5), parameter :: c_name="c_foo"
interface
subroutine foo() bind(C,name=c_name)
import c_name
end subroutine
end interface
call foo()
end program
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20180726/bf9c88f4/attachment.html>
More information about the J3
mailing list