From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3983 invoked by alias); 14 May 2002 14:03:52 -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 3872 invoked from network); 14 May 2002 14:03:42 -0000 Received: from unknown (HELO tunnel.cae.ca) (142.39.200.50) by sources.redhat.com with SMTP; 14 May 2002 14:03:42 -0000 Received: from dns1.cae.ca (dns1.cae.ca [142.39.20.1]) Received: from l0553.cae.ca (l0553.cae.ca [142.39.86.1]) Tue, 14 May 2002 09:58:27 -0400 (EDT) Subject: Re: Error: must operate on two scalar (not array) subexpressions From: Hassan Aurag To: Andrew Stone Cc: gcc-help@gcc.gnu.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 14 May 2002 07:03:00 -0000 Message-Id: <1021384718.1306.2.camel@l0553> Mime-Version: 1.0 X-SW-Source: 2002-05/txt/msg00131.txt.bz2 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