P
PufferFish
Hi folks,
I hope that this is the correct group for these things, apologies if not.
I've got a strange compiler error. It appears to be similar to the issue
described in knowledgebase article 320004 except that particular problem was
fixed in .NET 2003, according to the article.
The error I get is:
fatal error C1001: INTERNAL COMPILER ERROR (compiler file
'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\main.c', line 148)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
If I follow the steps outlined in 320004, #pragma optimize("g", off) and on
around the affected function the problem stops. The error does not show in
debug builds, so this appears to be an optimisation error. Also in common
with 320004, there is a while loop involved. I've tried rearranging the code
a bit with no luck, and various optimisation changes didn't fix it (bar
switching 'em all off).
I've done various searches and found compiler errors that refer to line 146
(mostly .NET 2002) of main.c and a bunch referring to 148, some of which are
related to throw/catch (which is not the case here).
This code compiled and ran OK under VC6 (SP5). We're currently evaluating
our MSDN version of .NET2003 with compiles under both versions to check that
everything still works OK under the new compiler before doing a full
upgrade. With the #pragmas around the code, the code still compiles OK under
both versions but I was curious as to whether there is a fix available for
this problem or if there are any more details?
Cheers,
PufferFish.
I hope that this is the correct group for these things, apologies if not.
I've got a strange compiler error. It appears to be similar to the issue
described in knowledgebase article 320004 except that particular problem was
fixed in .NET 2003, according to the article.
The error I get is:
fatal error C1001: INTERNAL COMPILER ERROR (compiler file
'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\main.c', line 148)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
If I follow the steps outlined in 320004, #pragma optimize("g", off) and on
around the affected function the problem stops. The error does not show in
debug builds, so this appears to be an optimisation error. Also in common
with 320004, there is a while loop involved. I've tried rearranging the code
a bit with no luck, and various optimisation changes didn't fix it (bar
switching 'em all off).
I've done various searches and found compiler errors that refer to line 146
(mostly .NET 2002) of main.c and a bunch referring to 148, some of which are
related to throw/catch (which is not the case here).
This code compiled and ran OK under VC6 (SP5). We're currently evaluating
our MSDN version of .NET2003 with compiles under both versions to check that
everything still works OK under the new compiler before doing a full
upgrade. With the #pragmas around the code, the code still compiles OK under
both versions but I was curious as to whether there is a fix available for
this problem or if there are any more details?
Cheers,
PufferFish.