Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!sgi!shinobu!odin!dinkum!calvin From: calvin@dinkum.wpd.sgi.com (Calvin H. Vu) Newsgroups: comp.sys.mips Subject: Re: f77 compiler bug (both MIPS and SGI) Message-ID: <1991Jun18.191622.4008@odin.corp.sgi.com> Date: 18 Jun 91 19:16:22 GMT References: <1991Jun17.174155.13484@cpsc.ucalgary.ca> <1991Jun17.224729.15190@rice.edu> Sender: news@odin.corp.sgi.com (Net News) Organization: Silicon Graphics, Inc. Mountain View, CA Lines: 27 In <1991Jun17.224729.15190@rice.edu> zdenko@katzo.rice.edu (zdenko tomasic) writes: | In article <1991Jun17.174155.13484@cpsc.ucalgary.ca> cliff@phys.ucalgary.ca writes: | >I've discovered an interesting 'glitch' in the f77 compiler for | >MIPS (and consequently, for SGI, also). given a code skeleton of : | > | > if (...) goto 10 | ^^ jump into the body of the loop from outside! | (the continue statement is a part of the loop) | > . | > do 10 .... | > . | >10 continue | ^^ | This jump is illegal fortran, so anything can happen at the execution time. This is illegal and I have fixed it to give an error message when it happens. Later I changed the error into a warning since some people may want to control the unpredictability of their program execution rather than to do things the right and predictable way. It will be in SGI's 4.0 release. -- ----------------------------------------------------------------------------- Calvin H. Vu | "We are each of us angels with only one Silicon Graphics Computer Systems | wing. And we can only fly embracing calvin@sgi.com (415) 962-3679 | each other."