sizeof intrinsic
Satish Balay
balay@mcs.anl.gov
Sun May 6 15:07:00 GMT 2007
Not sure if sizeof() is part of f95 standard.. However a bunch of
compilers except gfortran appear to support it.
Will this be supported by gfortran?
Thanks,
Satish
-----------------
asterix:/home/balay/junk/test>cat foo.F
subroutine foo(a)
implicit none
integer a
write(*,*) a
end
program main
implicit none
integer a
call foo(sizeof(a))
end
asterix:/home/balay/junk/test>g95 foo.F
asterix:/home/balay/junk/test>./a.out
4
asterix:/home/balay/junk/test>ifort foo.F
asterix:/home/balay/junk/test>./a.out
4
asterix:/home/balay/junk/test>sun-f90 foo.F
asterix:/home/balay/junk/test>./a.out
4
asterix:/home/balay/junk/test>
More information about the Fortran
mailing list