Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29258 Discussions

portability issues on other compilers

Izaak_Beekman
New Contributor II
798 Views
Does anyone know which standard introduced allocatable dummy arguments? It seems that ifort has had these for quite some time but gcc 4.4 throws a fit when I use them.
0 Kudos
1 Solution
TimP
Honored Contributor III
798 Views
The TR was incorporated in f2003. The initial implementation in gfortran was released over 2 years ago, in gfortran 4.5. gfortran 4.7 has been released. While gfortran is not as far along as ifort, it's unreasonable to make expectations of a 3 year old version.

View solution in original post

0 Kudos
4 Replies
mecej4
Honored Contributor III
798 Views
This extension to Fortran 95 was provided in TR 15581:1998. See this page and, if so inclined, follow the link there to the actual document itself. As far as I know, current versions of most major Fortran compilers support it.
0 Kudos
Steven_L_Intel1
Employee
798 Views
Correct. This feature was formally included into the standard in Fortran 2003. I know that gfortran has supported this for a long time.
0 Kudos
TimP
Honored Contributor III
799 Views
The TR was incorporated in f2003. The initial implementation in gfortran was released over 2 years ago, in gfortran 4.5. gfortran 4.7 has been released. While gfortran is not as far along as ifort, it's unreasonable to make expectations of a 3 year old version.
0 Kudos
Izaak_Beekman
New Contributor II
798 Views
Thanks, I didn't realize how old 4.4 is. It seems, however that on some HPC systems compilers are adopted long after they are released. I know that this is in the f2003 standard but was unsure of which standard added this feature. I have been using this feature for a long time (mostly with ifort) and was confused when it didn't compile under--what I now understand to be an old version of--gfortran.

0 Kudos
Reply