(j3.2006) example program for interp F08/0144

Damian Rouson damian
Fri Oct 2 02:30:50 EDT 2015


> On Oct 1, 2015, at 10:46 PM, Robert Corbett <robert.corbett at oracle.com> wrote:
> 
> The attached program tests a few cases of the rules for assignment as stated in the Fortran 2003 and 2008 standard.  I believe a strict reading of the standard requires the program, barring exceptional occurrences, to write something like
> 
> 3
> 3
> 2
> 3
> 2 2
> 
> The output written by Oracle Solaris Studio Fortran is
> 
> 3
> 3
> 3
> 3
> 3 3
> 
> I would like to know if any implementation prints the output specified by the standards.

gfortran 6.0.0, nagfor 6.0, cce 8.4.0, ifort 15.0.3 all give results that are essentially identical to oracle?s result. 

pgfortran 15.0 can?t compile the file.  It seems to interpret ?MODULE PROCDURES? as though it were ?MODULE PROCEDURE?.  Even adding a trailing underscore to PROCEDURE doesn?t help and changing PROCEDURES to an entirely different name just leads to another problem that I haven?t taken the time to diagnose.

D




More information about the J3 mailing list