Fortran 2003 C Interop Question
807575Aug 22 2006 — edited Oct 10 2006This is for someone in Sun's Fortran compiler group.
I just downloaded the Aug. build 2 of Sun Studio Express for Linux and was playing around with the FORTRAN/C Interoperability features. I've encountered a problem with the BIND(C) suffix that I think is a violation of the standard or at least the DRAFT standard on j3-fortran. sunf95 requires me to put a comma between the closing paren of the subroutine argument list and the BIND(C) suffix.
Example
Subroutine csub (ni, a), BIND(C)
The draft standard does not show that the comma is required (I don't think it is).
g95 doesn't allow the comma. I think Cray's X1 compiler makes it optional. So who is following the actual standard? Sun, g95, or Cray.
Also, when will the IMPORT statement appear in the Sun Studio compilers.
Thanks