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

mark leair PGI mark.leair
Fri Oct 2 03:41:28 EDT 2015


The pgfortran 15.7 compiler produces the same output as Oracle Solaris Studio Fortran.
As Damian pointed out, we do have a bug with "module procedues". However, changing it to "module _procedures" works. I'll file a bug report on our side.

-Mark


-----Original Message-----
From: j3-bounces at mailman.j3-fortran.org [mailto:j3-bounces at mailman.j3-fortran.org] On Behalf Of Damian Rouson
Sent: Thursday, October 01, 2015 11:31 PM
To: robert.corbett at oracle.com; fortran standards email list for J3
Cc: j3
Subject: Re: (j3.2006) example program for interp F08/0144


> 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

_______________________________________________
J3 mailing list
J3 at mailman.j3-fortran.org
http://mailman.j3-fortran.org/mailman/listinfo/j3
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------



More information about the J3 mailing list