www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/04/10:53:59

From: Clive Page <cgp AT le DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp,comp.lang.fortran
Subject: Re: PARAMETER not accepted by G77
Date: 4 Apr 1997 11:32:20 +0100
Organization: University of Leicester, UK
Lines: 18
Message-ID: <5i2lbk$ov5@hawk.le.ac.uk>
References: <3343D44C DOT 167E AT fina DOT be>
NNTP-Posting-Host: hawk.le.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>myself previously: with the compiler f77 I used on the UNIX machine, a
>PARAMETER statement would look like
>    PARAMETER NCOMP=11
>To be accepted by G77, it must be written
>    PARAMETER (NCOMP=1)

In other words, g77 likes the PARAMETER statement to conform to the
Fortran77 Standard.  The form without parentheses was originally a PDP-11
Fortran variant (as far as I remember) but a few later compilers also
accepted it, presumably as an act of kindness to elderly programmers who
could not be bothered to write standard Fortran.  But such kindness only
stores up problems for the future, as you have discovered.

-- 
-------------------------------------------------------------------------
Clive Page,                         Internet: cgp AT star DOT le DOT ac DOT uk
Dept of Physics & Astronomy,        
University of Leicester.         

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019