internal compiler error (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537)  
Author Message
Alex Foygel





PostPosted: Visual C++ Language, internal compiler error (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537) Top

I'm getting the following error when trying to compile a C++ file in VS 2003 with SP1:

fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537)

It happens on the following line in my code:

const char* p = "SomeText";

If I were to change this line to something like

const char* p = "SomeOtherText";

then it would compile just fine.

I've trying doing a complete rebuild, but the problem is still there.

Any ideas what is going wrong



Visual C++1  
 
 
Brian Kramer





PostPosted: Visual C++ Language, internal compiler error (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537) Top

That's pretty weird.  Something like this must be very rare, and together with the fact this is VS 2003, you'll probably just have to change your code in whichever way gets around the ICE rather than expect a fix in the compiler.

Do you have the same string elsewhere Maybe that's related. 

Do any string of the same length cause the problem  

Is /GF being used in your compiler settings

 


 
 
Alex Foygel





PostPosted: Visual C++ Language, internal compiler error (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537) Top

Probably it is related to the exact string, because I do have another occurence of exactly the same string elsewhere within the project. And changing the string on the line where I'm getting ICE to some other string of the same length makes the problem go away. I don't have the /GF in my compiler settings.

And the last piece of info - ICE happens in the Debug build; the release build (that does not have /GF either) works fine.

Is this a known VS 2003 issue


 
 
Brian Kramer





PostPosted: Visual C++ Language, internal compiler error (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537) Top

I am doubtful you'll get a meaningful resolution on this by asking the forum on this. This is a bug in the compiler, and it there's the symptom as you describe it doesn't really help in understanding why the ICE occurs. You can open a bug on it, and maybe someone at Microsoft can run it against their VC7.1 (VS2003) source tree to see if its a bug that's also present in the latest compiler tree. Based on my experience, that's the most I would expect from this sort of issue.
 
 
Alex Foygel





PostPosted: Visual C++ Language, internal compiler error (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537) Top

As suggested, I've posted a bug report to the Microsoft VS feedback site:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=252700