This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error: must operate on two scalar (not array) subexpressions
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Andrew Stone <astone at brightlane dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 14 May 2002 00:21:31 +0200
- Subject: Re: Error: must operate on two scalar (not array) subexpressions
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <OKELKEGKKOINCPCMEJFIKENHCLAA.astone@brightlane.com>
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)