(j3.2006) (SC22WG5.4126) Problems created by some compiler extended size options
Fri Nov 13 14:32:57 EST 2009
Intel Fortran does not promote when the kind is explicitly specified.
Intel Developer Support
From: j3-bounces at j3-fortran.org [mailto:j3-bounces at j3-fortran.org] On Behalf Of Craig Rasmussen
Sent: Friday, November 13, 2009 2:18 PM
Subject: (j3.2006) (SC22WG5.4126) Problems created by some compiler extended size options
There was a discussion at the MPI forum regarding the use of extended
size compiler options. It appears that there some options on some
compilers that promote integers even if the kind parameter is specified.
The problem with this is that it breaks the C interoperability
standard. For example, the code,
integer(C_INT) :: i
appears to be broken as the variable i will get promoted.
Is this a common compiler option? I've been told that users most
often chose the compiler option that promotes everything, even if an
explicit kind is provided.
I think this practice is evil!
J3 mailing list
J3 at j3-fortran.org
More information about the J3