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: Hassan Aurag <aurag at cae dot com>
- To: Andrew Stone <astone at brightlane dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 14 May 2002 09:58:37 -0400
- Subject: Re: Error: must operate on two scalar (not array) subexpressions
- References: <OKELKEGKKOINCPCMEJFIAENPCLAA.astone@brightlane.com>
I know this from experience. I got to port code written in Fortran ages
ago using g77 on linux/pc.
There is no fugly- that will let you compare chars to ints. Even IBM's
xlf does not support it.
It should not however be hard to write an implicit function that does
it. Will take a char*something and int*same thing and do the magic of
equivalence locally to check if they are equal.
On Tue, 2002-05-14 at 08:13, Andrew Stone wrote:
> Thanks Hassan and Toon,
>
> Here's some more info:
> G77 Version: g77 version 2.95.2 19991024 (release) (from FSF-g77 version
> 0.5.25 19991024 (release))
>
> I have tried all the -fugly options to no avail, but from the previous
> comment I found
> the IMPLICIT INTEGER*4 (A-Z) statements. I was trying not to do too much
> code change,
> but since the -fugly compiler options aren't the solution..I guess the code
> changes will
> have to be done - correct?
>
> Again, thanks for your help,
> andy
>
> Andrew Stone
> XML Architect/Developer
> BrightLane, a TeamStaff Inc. Company
> Office: 678-385-2823