Internal Compiler Error

M

mphanke

Hi,

just in case this is somewhat new:

myfile.h(677): fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 2701)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more
information


And this is line 677:
Rectangle rCPicL(offset_L, (int)(rCPicHeadL.Bottom), width_halbe,
(width_halbe*3)/4);


This error occured when I tried to remove a couple warnings and added
the (int)(rCPicHeadL.Bottom) cast.


Everything compiles just fine when I remove the (int)(...) cast.


Martin
 
C

Carl Daniel [VC++ MVP]

mphanke said:
Hi,

just in case this is somewhat new:

myfile.h(677): fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 2701)
Please choose the Technical Support command on the Visual
C++ Help menu, or open the Technical Support help file for
more information


And this is line 677:
Rectangle rCPicL(offset_L, (int)(rCPicHeadL.Bottom), width_halbe,
(width_halbe*3)/4);


This error occured when I tried to remove a couple warnings and added
the (int)(rCPicHeadL.Bottom) cast.


Everything compiles just fine when I remove the (int)(...) cast.

Unfortunately, there's probably no way to tell if that ICE has been
reported unless you can post a complete program, along with command-line
options, that reproduces the ICE. It's unlikely that that line in isolation
is the cause ever if removing a cast from that one line cures the ICE in
this specific case.

Have you tried writing the cast as

(int)rCPicHeadL.Bottom

or

int(rCPicHeadL.Bottom)

? In your sample you have more parentheses than are required.

-cd
 
M

mphanke

Hi,

would it be enough to post the function itself and the compiler settings?

Martin
 
C

Carl Daniel [VC++ MVP]

mphanke said:
Hi,

would it be enough to post the function itself and the compiler
settings?

Only if compiling that function in isolation with those settings reproduces
the ICE. If you're unable to work it down to a small repro case that you
can post, you could contact microsoft product support. They'll be able to
take a larger repro case from you under suitable confidentiality terms so
you won't have to post your code for all to see.

-cd
 
M

mphanke

Hi,

I will try whether isolating this line causes the error, than I will
post it. I'm running into a deadline this friday so it will be after the
weekend!

Martin
 
V

Vladimir Kouznetsov

Carl Daniel said:
Only if compiling that function in isolation with those settings reproduces
the ICE. If you're unable to work it down to a small repro case that you
can post, you could contact microsoft product support. They'll be able to
take a larger repro case from you under suitable confidentiality terms so
you won't have to post your code for all to see.

How can one be sure that a worked down small repro case reproduces the same
ICE? :)

thanks,
v
 

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