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: Harald Anlauf Subject: Re: Mysterious data corruption in Fortran with -automatic Date: 1998/06/05 Message-ID: #1/1 X-Deja-AN: 359781329 References: <01bd9013$76f09aa0$6f242499@stupidwin95> <35774C1A.2985A59E@rhea.umd.edu> <01bd9036$7ae7fea0$LocalHost@stupidwin95> Organization: TH Darmstadt Newsgroups: comp.sys.dec,comp.lang.fortran "Kevin G. Rhoads" writes: > If the code gives CORRECT answers with compiler > optimizations OFF and it gives WRONG answers > with compiler optimizations ON -- question, where > is the bug? > > Answer, in the compiler optimizations -- the code > did NOT change, the compiler did. Your argument is not very convincing. I also second Thorsten's suggestion: If your program gives correct results with optimization *and* -noautomatic, then the bug is almost always in the code. This is my experience with foreign code. YMMV. -- Ciao, -ha