INTERNAL COMPILER ERROR

P

pasalic.zaharije

I write some project, and after few lines (ok, not few, after a lot of
lines) i got internal compiler error.
After few hours of looking trough my code, I find error: two same names
in typedef and in class. So, I write
simple console app with:

typedef unsigned int UI32;

class UI32
{
};

Compile, and BUM! Again, internal compiler error:

"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"

I am workin on Visual Studio 2003, on XP + sp2. I try to use google to
see is there anything about this, but no (realy, i did not look in
detail).

Is there any patch/fix for that, or ...

Best,
Zaharije Pasalic
 
J

Jochen Kalmbach [MVP]

Hallo pasalic!
typedef unsigned int UI32;

class UI32
{
};

This is not valid C++:

Comeau C/C++ 4.3.8 (Aug 19 2006 13:36:48) for ONLINE_EVALUATION_Alpha1
Copyright 1988-2006 Comeau Computing. All rights reserved.
MODE:strict errors C++

"ComeauTest.c", line 3: error: invalid redeclaration of type name "UI32"
(declared
at line 1)
class UI32
^

1 error detected in the compilation of "ComeauTest.c".


But of course... it should not generate an "Internal Compiler" error.
You can report this bug via
http://connect.microsoft.com/VisualStudio/feedback/


With VS2005 (SP1) it generates an error:

1>c:\localprojects\cpp\cpp.cpp(660) : error C2371: 'UI32' :
redefinition; different basic types
1> c:\localprojects\cpp\cpp.cpp(657) : see declaration of 'UI32'


Have you tried with VS2003-SP1?

Greetings
Jochen
 
P

pasalic.zaharije

eddie geer je napisao:
I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.

Does anybody have VS 2005 to check this? I will try, if I find 2005.

Best,
Zaharije Pasalic
 
P

pasalic.zaharije

(e-mail address removed) je napisao:
eddie geer je napisao:

Does anybody have VS 2005 to check this? I will try, if I find 2005.

Best,
Zaharije Pasalic

On VS 2005, it is ok. No internal error.

Best,
Zaharije Pasalic
 
J

Jochen Kalmbach [MVP]

Hi pasalic!
eddie geer je napisao:

Does anybody have VS 2005 to check this? I will try, if I find 2005.

As I said in my first posting: It works with VS2005 (SP1)...

Greetings
Jochen
 
P

pasalic.zaharije

Jochen Kalmbach [MVP] je napisao:
Hi pasalic!

As I said in my first posting: It works with VS2005 (SP1)...

Greetings
Jochen

Sorry, my miss-look.

best,
Pasalic Zaharije
 

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