From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,cf4ba3d07912d446 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1094ba,cf4ba3d07912d446 X-Google-Attributes: gid1094ba,public From: "Kevin G. Rhoads" Subject: Re: Mysterious data corruption in Fortran with -automatic Date: 1998/06/05 Message-ID: <01bd908a$2daad960$LocalHost@stupidwin95>#1/1 X-Deja-AN: 359842768 References: <01bd9013$76f09aa0$6f242499@stupidwin95> <35774C1A.2985A59E@rhea.umd.edu> <01bd9036$7ae7fea0$LocalHost@stupidwin95> <3577C0BE.3F3C879D@nonexistant.com> Newsgroups: comp.sys.dec,comp.lang.fortran Exactly. I have no disagreement with that. However, when responding to flamers who assert that all errors MUST be in the code ALL the time. Who so flame without adding any useful information. I responded by streamlining the logic. It was probably a mistake to try to simplify the logic to the level where a self-righteous, unhelpful flamer (such as Jeffery would appear to be, based upon his post above) could perhaps understand it. But I did so simplify the logic and present it. So, yes, I agree. The presence of errors which appear solely in response to increased optimization is NOT PROOF of a compiler bug. It is merely evidence that may indicate several things. And most of the things it can indicate are programmer errors or oversights. BUT, there comes a point, after one has tested the code, proof-read it repeatedly, asked fellow programmers to review it, tried multiple compilers with multiple settings and multiple debuggers and code testing tools -- somewhen, there comes a point at which checking for a bug in the optimizer is a reasonable thing to start doing. -- Kevin G. Rhoads, Ph.D. T_Rhoads@NO_SPAM.Classic.MSN.COM KRhoads@NO_SPAM.CmpNetMail.com