C1001 INTERNAL COMPILER ERROR - VC7

C

CB

I'm upgrading our product from VC6 to the VC7 compiler and
came across the C1001 error:

fatal error C1001: INTERNAL COMPILER ERROR (compiler
file 'f:\vs70builds\3077\vc\Compiler\CxxFE\sl\P1
\C\toil.c', line 6931)

I've managed to reliably reproduce it using the few lines
of code below that does not use any of my own product code:

#import "c:\windows\system32\dxtmsft.dll" no_namespace

int main()
{
float f;
int i;

IDXTRevealTrans *rev;
//... initialise rev ...
i = rev->Transition; // int works
i = (rev->Transition); // int works
f = rev->Duration; // float works
f = (rev->Duration); // float fails!

return 0;
}

Adding brackets around a the float property fails whilst
the int is fine with or without brackets. Unfortunately I
cannot get away without using the brackets in the
particular bit of code in my product. The only way I can
work around it is to use a temporary float variable as a
go-between.

Can someone give me an explanation or proper fix?
 
D

David Lowndes

I'm upgrading our product from VC6 to the VC7 compiler and
came across the C1001 error:

The same occurs with the 7.1 compiler too.

While this is of little help to you, the current C++ compiler for the
forthcoming Whidbey release does compile your code OK.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top