(j3.2006) parameterized derived types

Robert Corbett robert.corbett
Wed Dec 9 21:22:17 EST 2015


An additional problem I have with my implementation is that a user can choose to 
link with a variety of math libraries.  For one of the platforms supported by 
Oracle Solaris Studio Fortran provides a general-purpose math library (which is 
the default math library), a fast math library, and a high accuracy math 
library.  The compiler uses the general-purpose math library to evaluate 
intrinsic functions in constant expressions.  Functions in the other two 
libraries produce different results for the same actual argument values in some 
cases.  Over time, the functions in the libraries tend to change, which could be 
a problem for programs that dynamically link with the math libraries.

I could defer evaluation of specification expressions that reference the 
intrinsic transcendental functions until run-time, but that will preclude static 
allocation in some cases.

Robert Corbett



More information about the J3 mailing list