Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!think!snorkelwacker!apple!mips!gumby!lilian From: lilian@mips.COM (Lilian Leung) Newsgroups: comp.sys.mips Subject: Re: bug f77 Message-ID: <37390@mips.mips.COM> Date: 27 Mar 90 03:27:11 GMT References: <1990Mar26.231235.3713@sobeco.com> Sender: news@mips.COM Reply-To: lilian@mips.COM (Lilian Leung) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 34 In article <1990Mar26.231235.3713@sobeco.com> laporte@sobeco.com (p.laporte) writes: > >The fortran compiler loops when compiling this small program > > data n/1/ > i = 1 > mem(i) = mem(i) > j = mem(i) > stop > end > >Has this been fixed in the 2.10 version of f77 ? >We are still using version 2.00 > >Tks > >Pierre Laporte >laporte@Sobeco.com No, this has not been fixed in our 2.10 version. We will file it as a bug and fix it in our later version. It loops because our compiler tries to substitute the statement function mem() in j = mem(i) with the RHS of its definition, which happens to be the same as the statement function itself, so it goes into an infinite loop trying to resolve the function. The solution will be to generate an error msg for this. -- UUCP: {ames,decwrl,prls,pyramid}!mips!lilian (or lilian@mips.com) DDD: 408-991-7848 Lilian Leung (or 408-720-1700, Ext. 848) USPS: MIPS Computer Systems, 930 Arques, Sunnyvale, CA 94086-3650