From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14691 invoked by alias); 13 May 2002 22:26:41 -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 14678 invoked from network); 13 May 2002 22:26:39 -0000 Received: from unknown (HELO laptop.moene.indiv.nluug.nl) (195.109.255.217) by sources.redhat.com with SMTP; 13 May 2002 22:26:39 -0000 Received: from local ([127.0.0.1] helo=moene.indiv.nluug.nl) by laptop.moene.indiv.nluug.nl with esmtp (Exim 3.12 #1 (Debian)) id 177OCB-0000H6-00; Tue, 14 May 2002 00:21:31 +0200 Message-ID: <3CE03C6B.87F5E469@moene.indiv.nluug.nl> Date: Mon, 13 May 2002 15:26:00 -0000 From: Toon Moene Organization: Moene Computational Physics, Maartensdijk, The Netherlands X-Accept-Language: en MIME-Version: 1.0 To: Andrew Stone CC: gcc-help@gcc.gnu.org Subject: Re: Error: must operate on two scalar (not array) subexpressions References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00126.txt.bz2 Andrew Stone wrote: > I'm trying > to compile this source code using g77 and get the following error: > > CALC401K.FOR:194: > IF(UNTYPE.EQ.'XX ') GOTO 171 > 1 2 > Equality operator at (1) must operate on two scalar (not array) > subexpressions, two function invocations returning arithmetic or character > scalars, or a combination of both -- but the subexpression at (2) is an > array Are you sure you tried all compiler options starting with -fugly- .... ? BTW, which version of the compiler are you using (send the output of g77 -v). Thanks, -- Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)