From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8035 invoked by alias); 20 Jan 2002 15:41:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7989 invoked from network); 20 Jan 2002 15:41:26 -0000 Received: from unknown (HELO sticks.phy.bris.ac.uk) (137.222.30.155) by sources.redhat.com with SMTP; 20 Jan 2002 15:41:26 -0000 Received: from localhost (localhost [[UNIX: localhost]]) by sticks.phy.bris.ac.uk (8.9.3/8.9.3/Debian 8.9.3-21) id PAA32596 for gcc-help@gcc.gnu.org; Sun, 20 Jan 2002 15:41:25 GMT Date: Sun, 20 Jan 2002 07:41:00 -0000 From: Major A To: gcc-help@gcc.gnu.org Subject: fortran 90 Message-ID: <20020120154125.GB25785@janus.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i X-SW-Source: 2002-01/txt/msg00206.txt.bz2 Hi, I'm new to this list, so please forgive me if I ask something already discussed before. I would like to compile a program written (to a large extent) by others in fortran 90. It works fine with Compaq's compiler on an alpha, but I would also like to compile it on an x86 machine. GNU fortran, however, gives numerous error messages (regardless of whether -ff90 is specified), the first few being bandfit7.f: In program `MAIN__': bandfit7.f:3: real*8,allocatable,dimension(:):: y,obj,dum,ftemp,bocc,f,g ^ Invalid type-declaration attribute at (^) -- must be one of: DIMENSION(array-spe c), EXTERNAL, INTRINSIC, PARAMETER, or SAVE bandfit7.f:3: real*8,allocatable,dimension(:):: y,obj,dum,ftemp,bocc,f,g ^ Expression at (^) has incorrect data type or rank for its context bandfit7.f:3: real*8,allocatable,dimension(:):: y,obj,dum,ftemp,bocc,f,g ^ Expression at (^) has incorrect data type or rank for its context bandfit7.f:3: real*8,allocatable,dimension(:):: y,obj,dum,ftemp,bocc,f,g ^ Fortran 90 feature at (^) unsupported Am I doing something wrong, or does g77 really not support dynamic arrays? In that case, is there an alternative to g77 that I should use? Thanks a lot, Andras