(j3.2006) (SC22WG5.4126) Problems created by some compiler extended size options
Lionel, Steve
steve.lionel
Fri Nov 13 14:32:57 EST 2009
Intel Fortran does not promote when the kind is explicitly specified.
Steve Lionel
Intel Developer Support
Nashua, NH
-----Original Message-----
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
To: WG5
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
call bindc_function(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!
-craig
_______________________________________________
J3 mailing list
J3 at j3-fortran.org
http://j3-fortran.org/mailman/listinfo/j3
More information about the J3
mailing list