(j3.2006) nonstandard specifics of standard intrinsic generics

Robert Corbett Robert.Corbett
Tue Apr 15 19:56:05 EDT 2008


Can a standard-conforming processor provide nonstandard specific
interfaces of a generic intrinsic interface in addition to the
standard specific interfaces?  Existing implementations do, but
that can create conflicts with otherwise standard-conforming
programs.  In such a case, is the program or the processor
nonconforming?

For example, suppose an implementation provides a nonstandard
specific interface for the function SQRT that takes an INTEGER
argument.  Consider the program

       REAL FUNCTION SQRTI(I)
         SQRTI = SQRT(DBLE(I))
       END

       PROGRAM MAIN
         INTRINSIC SQRT
         INTERFACE SQRT
           REAL FUNCTION SQRTI(I)
           END FUNCTION
         END INTERFACE
       END

If the processor reports a violation of constraint C547 of
Section 5.1.2.8 of the Fortran 2003 standard for this program,
is the processor nonconforming?

Bob Corbett



More information about the J3 mailing list