Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcrdcf.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!sdcrdcf!pmontgom From: pmontgom@sdcrdcf.UUCP (Peter Montgomery) Newsgroups: net.lang.f77 Subject: Re: constant expressions in f77 Message-ID: <1640@sdcrdcf.UUCP> Date: Sat, 5-Jan-85 17:04:09 EST Article-I.D.: sdcrdcf.1640 Posted: Sat Jan 5 17:04:09 1985 Date-Received: Tue, 8-Jan-85 04:06:33 EST References: <758@ttds.UUCP> Reply-To: pmontgom@sdcrdcf.UUCP (Peter Montgomery) Organization: System Development Corp. R+D, Santa Monica Lines: 22 Summary: > 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? I had this trouble too. It occurred only when using the optimizer. I am told the problem is fixed in the latest version of f77. -- Peter Montgomery {aero,allegra,bmcg,burdvax,hplabs, ihnp4,psivax,randvax,sdcsvax,trwrb}!sdcrdcf!pmontgom Don't blame me for the crowded freeways - I don't drive.