Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mimsy!umd5!virginia!krebs!wrp From: wrp@krebs.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: 2 bugs in Turbo C Message-ID: <188@krebs.acc.virginia.edu> Date: Fri, 19-Jun-87 10:34:52 EDT Article-I.D.: krebs.188 Posted: Fri Jun 19 10:34:52 1987 Date-Received: Sun, 21-Jun-87 00:46:16 EDT References: <2879@zen.berkeley.edu> <3320022@hpsrlc.HP.COM> Reply-To: wrp@krebs.UUCP (PUT YOUR NAME HERE) Distribution: world Organization: University of Va., Charlottesville, VA Lines: 16 Last night I discovered another problem which I have not yet been able to track down. Apparently, incorrect code is generated in some cases when an array of structures is being accessed. I have code in which x = sarr[i].v - arr[j-sarr[i+1].p]; goes into never never land but tmp = j - sarr[i+1].p; x = sarr[i].v - arr[tmp]; works. Unfortunately, it may not work correctly, because the program that uses this code returns the wrong answer. This code works fine under Lattice, Microsoft, VAX/VMS, Xenix, and SysVR2 compilers. Bill Pearson ...!seismo!virginia!wrp wrp@virginia.BITNET