https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/106635&feed=atom&action=history
Microsoft KB Archive/106635 - Revision history
2024-03-29T11:03:26Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/106635&diff=49816&oldid=prev
3155ffGd: importing KB archive
2020-07-18T15:04:45Z
<p>importing KB archive</p>
<p><b>New page</b></p><div><div id="nsbanner"><br />
<br />
<div id="bannerrow1"><br />
<br />
{|<br />
| Knowledge Base<br />
|<br />
|}<br />
<br />
<br />
</div><br />
<div id="TitleRow"><br />
<br />
= <span id="KB106635"></span>FIX: $DEBUG Does Not Trap Range Errors in Implied-DO Loops =<br />
<br />
<br />
</div><br />
<br />
</div><br />
<div id="nstext" valign="BOTTOM"><br />
<br />
Article ID: 106635<br />
<br />
Article Last Modified on 12/1/2003<br />
<br />
<br />
-----<br />
<br />
APPLIES TO<br /><br />
<br /><br />
<br />
* Microsoft FORTRAN Compiler 4.0<br />
* Microsoft FORTRAN Compiler 4.1<br />
* Microsoft FORTRAN Compiler 5.0<br />
* Microsoft FORTRAN Compiler 5.1<br />
* Microsoft FORTRAN Compiler 4.1<br />
* Microsoft FORTRAN Compiler 5.0<br />
* Microsoft FORTRAN Compiler 5.1<br />
* Microsoft FORTRAN PowerStation 1.0 Standard Edition<br />
* Microsoft Fortran PowerStation 1.0a for MS-DOS<br />
* Microsoft FORTRAN PowerStation 32<br />
<br />
<br />
-----<br />
<br />
<div class="notice_section"><br />
<br />
This article was previously published under Q106635<br />
<br />
</div><br />
<div class="symptoms_section"><br />
<br />
== SYMPTOMS ==<br />
<br />
Extended error handling (enabled by $DEBUG or /4Yb) does not catch array subscript out-of-range errors in implied-DO loops (it does not generate F6096).<br />
<br />
</div><br />
<div class="status_section"><br />
<br />
== STATUS ==<br />
<br />
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was fixed in FORTRAN PowerStation version 4.0.<br />
<br />
</div><br />
<div class="moreinformation_section"><br />
<br />
== MORE INFORMATION ==<br />
<br />
To duplicate the problem, compile and run the sample code below, which generates no errors. Because the code writes to elements 11-20 of array J, the following should have been generated:<br />
<div class="errormessage"><br />
<br />
: run-time error F6096: $DEBUG<br /><br />
- array subscript expression out of range<br />
<br />
</div><br />
=== Sample Code ===<br />
<br />
<pre class="codesample">C Compiler options needed: none<br />
$debug<br />
parameter (n=20)<br />
integer j(10)<br />
j=1 ! set entire array to 1<br />
write (*,*) (j(i),i=1,n)<br />
end<br />
</pre><br />
<br />
</div><br />
<br /><br />
<br />
Additional query words: 1.00<br />
<br />
Keywords: kbfix KB106635<br />
<br />
<div class="footer"><br />
<br />
<br /><br />
<br />
<br />
-----<br />
<br />
[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]<br />
<br />
<span>© Microsoft Corporation. All rights reserved.</span><br />
<br />
<br />
</div><br />
<br />
</div></div>
3155ffGd