Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC840302); site ttds.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!wjh12!talcott!harvard!seismo!mcvax!enea!ttds!sundman
From: sundman@ttds.UUCP (Bo Sundman)
Newsgroups: net.lang.f77
Subject: constant expressions in f77
Message-ID: <758@ttds.UUCP>
Date: Wed, 12-Dec-84 22:58:47 EST
Article-I.D.: ttds.758
Posted: Wed Dec 12 22:58:47 1984
Date-Received: Thu, 20-Dec-84 01:25:37 EST
Reply-To: sundman@ttds.UUCP (Bo Sundman)
Organization: The Royal Inst. of Techn., Stockholm
Lines: 17

I am trying to convert a large (30000 lines) fortran-77 program to
UNIX environment. To start I have some problems about declarations:
(1)     PARAMETER (K1=10,K2=2*K1) is not accepted.
(2)     PARAMETER (KZ=2**K1)      is not accepted.
(3)     CHARACTER LINE*(2*K1)     is not accepted.
The error message from the compiler indicates that f77 do not
accept these as contant expressions.
It thus seems that constant expressions is very restricted. 
These constructions works on all other f77 compilers I have tried and
I am very dependent upon them (there are a few 1000 places to change
othrewise because I use this to dimension arrays etc.)
I there any way to solve this problem?

-- 
        Bo Sundman                      (..mcvax!enea!ttds!sundman)
        Thermo-Calc group, Division of Physical Metallurgy
        Royal Institute of Technology, Stockholm, Sweden