--- Additional Comments From kargl at gcc dot gnu dot org 2005-03-17 19:46
---
www.lahey.com also compiles the code. It does issues 2 warnings about using
an unitialized variable and a variable set bu never used. As Andrew said,
you are in the area of "undefined behavior", which means
--- Additional Comments From ebertakis at gmail dot com 2005-03-17 19:07
---
(In reply to comment #1)
I tried it in Compaq Visual Fortran Professional Edition 6.5 and indeed the
compiler accepts the code. The debugger though will display an error message
indicating the line "a(1)=2*b(1)
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-17
17:37 ---
Confirmed, but this is valid code (yes undefined). Even ICC 8.1 accepts the
code without warnings or
errors.
--
What|Removed |Added
---