From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,cf4ba3d07912d446 X-Google-Attributes: gid1094ba,public X-Google-Thread: 1164f8,cf4ba3d07912d446 X-Google-Attributes: gid1164f8,public From: "Kevin G. Rhoads" Subject: Re: Mysterious data corruption in Fortran with -automatic Date: 1998/06/05 Message-ID: <01bd9090$495f13a0$LocalHost@stupidwin95>#1/1 X-Deja-AN: 359842771 References: <01bd9013$76f09aa0$6f242499@stupidwin95><35774C1A.2985A59E@rhea.umd.edu><01bd9039$7d242ba0$LocalHost@stupidwin95> Newsgroups: comp.sys.dec,comp.lang.fortran Let me begin by thanking you for supplying real substantive feedback, which should be helpful to all readers. This is something that a few earlier posters failed to do. >> I fail to see how anyone can reasonable suggest that when code >> compiles cleanly, with neither error NOR WARNING and produces two >> wildly different results depending ONLY on the compiler settings >> that it MUST be bugs in the code, and the compiler is necessarily >> faultless. > >Simple example: Your example is excellent. However, I must note it is an example of how it CAN be a code bug not a compiler bug. The comment above was in response to the (implied) assertion that it MUST be a code bug. I never claimed it COULD NOT be a code bug, I stand by what I have posted before, in context -- this kind of behavior indicates THE POSSIBILITY of a compiler bug and to assert that it ONLY results from code bugs is WRONG. As I have clarifed elsewhere, checking for compiler bugs is way down the to-do list. But when one has checked for code bugs and PREFERABLY had an independent code review (because it is impossible to properly proof-read what one has written oneself), and ... and ... and ... There comes a time to suspect the compiler. >> Are you just flaming? Or do you have some justification you are not >> sharing with the rest of us? > >Careful. Forgetting to SAVE variables is a _very_ common mistake. Again, the above is NOT a response to "it may be your code" but a (sarcastic) response to "it must be your code". Thorsten, your comments are helpful, to the point and no more judgemental than they absolutely have to be to address the issue. They offer real substance. And provide useful examples and suggestions. The post that the above was written in response to, in contrast to your helpful post, was sarcastically judgmental contained ZERO new information contained ZERO helpful suggestions TROLLish in tone and wasteful of bandwidth by unnecessarily quoting I have found most of the responses since then to be helpful, even when disagreeing. They offer useful information and suggestions. Further, while suggesting, oftimes strongly, that the code should be checked before finger pointing at the compiler, most of the subsequent posts seem to at least allow that perhaps, when all else has been checked, the compiler may have a bug. WHICH WAS ALL I EVER MEANT TO SAY! -- Kevin G. Rhoads, Ph.D. T_Rhoads@NO_SPAM.Classic.MSN.COM KRhoads@NO_SPAM.CmpNetMail.com