Re: Salford FTN95 Access violation on compile time



Mathemagician <mathemagician@xxxxxxx> wrote:

Thank you. Upgrading to 4.9.0 did indeed do the trick ! :)

Also thanks for calling it a "compiler bug".

Crashing at compile time is *ALWAYS* a compiler bug. If it were
something wrong with your code, the compiler should bitch and say that
there is something wrong with your code - not just crash.

This is actually a requirement of the Fortran standard (but even if it
weren't required by the standard, it would be required by "normal user
requirements").

From section 1.5 of the standard

"A processor [that's basically standard-speak for compiler
- the distinction isn't relevant for this porpose] conforms
to this standard if
[...]
(8) It contains the capability to detect and report the reason for
rejecting a submitted program."

Note that run-time errors are completely different. There are
innumerable ways that your program might crash at run time, and 99% of
the time, it is the programmer's "fault". But a compile-time crash is a
compiler bug.

--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.



Relevant Pages

  • Re: pointer components and memory leaks
    ... that's the same thing as what Paul said. ... Let's not suggest compiler bug every time one finds a problem. ... leak memory, though even there, user bugs in other parts of the code can ...
    (comp.lang.fortran)
  • Re: Really wierd bug
    ... > it has to be a compiler bug because it works fine for other population ... > My compiler is Compaq Visual Fortran 1997-1999. ... > with allocating the array sizes because I've defined the arrays as ... your program does indeed contain an array bounds error -- this ...
    (comp.lang.fortran)
  • Re: Questions in Optimization !!
    ... that the problem is absolutely, positively not a compiler bug, because ... "But it works as long as I don't use optimization! ... resulting in stack corruption ...
    (comp.os.vxworks)
  • Re: Wrong optimisation in Visual C++.net Release Build
    ... > It's not a compiler bug; it's bad code that relies on undefined behavior. ... The program in question does not invoke undefined behavior. ... The C++ standard is very clear that evaluation order is not ...
    (microsoft.public.vc.language)
  • Re: mutex question
    ... This is not a compiler bug -- this is a code bug. ... use 'volatile' on variables shared between threads. ... Memory barriers, not volatile, are the correct mechanism to force updating of variables between threads. ...
    (microsoft.public.win32.programmer.kernel)