https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/100377&feed=atom&action=history
Microsoft KB Archive/100377 - Revision history
2024-03-28T21:52:31Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/100377&diff=45941&oldid=prev
3155ffGd: importing KB archive
2020-07-18T15:01:53Z
<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="KB100377"></span>FIX: F1001: confold.c Line 253, Negative Integer Exponent =<br />
<br />
<br />
</div><br />
<br />
</div><br />
<div id="nstext" valign="BOTTOM"><br />
<br />
Article ID: 100377<br />
<br />
Article Last Modified on 10/17/2003<br />
<br />
<br />
-----<br />
<br />
APPLIES TO<br /><br />
<br /><br />
<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 Q100377<br />
<br />
</div><br />
<div class="symptoms_section"><br />
<br />
== SYMPTOMS ==<br />
<br />
An attempt to compile an application fails and Microsoft FORTRAN PowerStation version 1.0 for MS-DOS displays the following message:<br />
<div class="errormessage"><br />
<br />
fatal error F1001: INTERNAL COMPILER ERROR<br /><br />
(compiler file '@(#)confold.c:1.144', line 253)<br /><br />
Contact Microsoft Product Support Services<br />
<br />
</div><br />
FORTRAN PowerStation version 1.0a for MS-DOS displays the following error message:<br />
<div class="errormessage"><br />
<br />
fatal error F1001: INTERNAL COMPILER ERROR<br /><br />
(compiler file '@(#)confold.c:1.144', line 254)<br /><br />
Contact Microsoft Product Support Services<br />
<br />
</div><br />
<br />
</div><br />
<div class="cause_section"><br />
<br />
== CAUSE ==<br />
<br />
The command line specifies the /Ox optimization and the code contains an expression that computes a negative integer power of a constant integer or of an integer expression. The error above occurs when the compiler processes the unary minus operator in an integer exponentiation expression.<br />
<br />
</div><br />
<div class="resolution_section"><br />
<br />
== RESOLUTION ==<br />
<br />
There are two methods to work around this problem:<br /><br />
<br /><br />
<br />
* Modify the compiler command line to specify the /Oxp compiler option switch.<br />
* Modify the source code to remove the unary minus operator from integer expressions used as exponents. Assign the exponent to a temporary variable and negate the value. Then specify the temporary as the exponent.<br />
<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 32, version 4.0.<br />
<br />
</div><br />
<div class="moreinformation_section"><br />
<br />
== MORE INFORMATION ==<br />
<br />
The following sample code demonstrates this problem:<br />
=== Sample Code #1 ===<br />
<br />
<pre class="codesample">c Compiler options needed: /Ox<br />
<br />
program test<br />
integer j<br />
real x<br />
<br />
j = 1<br />
x = 2**(-j)<br />
print *, x<br />
end<br />
</pre><br />
The following sample code demonstrates one method to work around this problem:<br />
=== Sample Code #2 ===<br />
<br />
<pre class="codesample">c Compile options needed: /Ox<br />
<br />
program test<br />
integer j<br />
real x<br />
<br />
j = 1<br />
j = -j ! Negation occurs here.<br />
x = 2**(j)<br />
print *, x<br />
end<br />
</pre><br />
<br />
</div><br />
<br /><br />
<br />
Additional query words: 1.00 1.00a<br />
<br />
Keywords: kberrmsg kbbug kbfix kbcompiler KB100377<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