[Bug libfortran/20766] New: gfortran - run time error when calling fortran subroutine from c

dir at lanl dot gov gcc-bugzilla@gcc.gnu.org
Tue Apr 5 16:36:00 GMT 2005


We do this all of the time and g77, Absoft, IBM etc... do not complain.

[dranta:~/tests/gfortran] dir% gcc -c callc.c
[dranta:~/tests/gfortran] dir% g77 -c callf.f
[dranta:~/tests/gfortran] dir% g77 -o callc callc.o callf.o
[dranta:~/tests/gfortran] dir% callc
  I am Here 
[dranta:~/tests/gfortran] dir% gcc -c callc.c
[dranta:~/tests/gfortran] dir% gfortran -c callf.f
[dranta:~/tests/gfortran] dir% gfortran -o callc callc.o callf.o
[dranta:~/tests/gfortran] dir% callc
Fortran runtime error: End of record
[dranta:~/tests/gfortran] dir% cat callc.c
#include <stdio.h>
int main()
{
    sub_();
}
[dranta:~/tests/gfortran] dir% cat callf.f
      subroutine sub()
      write(*,*)' I am Here '
      return
      end

[dranta:~/tests/gfortran] dir% which gcc
/Users/dir/gfortran/bin/gcc

-- 
           Summary: gfortran - run time error when calling fortran
                    subroutine from c
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.8.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20766



More information about the Gcc-bugs mailing list