c1001

Visual Studio 2005 - VC++ compiler C1001 on Windows 7

When I try to build a simple "Hello World" C++ app on Windows 7 Beta, using Visual Studio 2005 (VC++2005) I get a rather generic error C1001 error (Internal compiler error) The compiler seems to just crash, and Windows pops up its (un)helpful This program has stopped working dialog. The file it complains about is mcp1.cpp. Has an...

Is making a function template specialization virtual legal?

In C++, a function template specialization is supposed to act exactly like a normal function. Does that mean that I can make one virtual? For example: struct A { template <class T> void f(); template <> virtual void f<int>() {} }; struct B : A { template <class T> void f(); template <> virtual void f<int>() {} }; int m...

VS2008 internal compiler error

I'm consistently running into an internal compiler error while attempting to switch from MSVC6 to MSVC 2008. After much work commenting out different parts of the program, I've traced the error to two lines of code in two different CPP files. Both of these CPP files compile successfully, yet somehow have an effect on whether or not the...

VC++ Internal Compiler Error

Iam getting the following error , could some one help me how to fix it . fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\3077\vc\Compiler\CxxFE\sl\P1\C\pdbmgr.cpp', line 149) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more...

VC6 and template error

Hi, I am overloading operator << to implement a stream like interface for a class: template<typename T> CAudit& operator << ( const T& data ) { audittext << data; return *this; } CAudit& operator << ( LPCSTR data ) { audittext << data; return *this; } The template version fails to compile with "fatal error C1001: INT...

Target .NET 3.5 C++/CLI in Visual Studio 2010 Beta 2

Has anyone had any success converting a VS 2008 C++/CLI (vcproj) project to a VS 2010 project (vcxproj), whilst maintaining .NET 3.5 as the target framework? I haven't been able to do this and get the project to build successfully. The project compiles fine in VS2008 as .NET 3.5, and fine in VS2010 as .NET 4.0, but I am unable to target ...

Internal compiler error and boost::bind

I'm testing a C++ class with a number of functions that all have basically the same form: ClassUnderTest t; DATATYPE data = { 0 }; try { t.SomeFunction( &data ); } catch( const SomeException& e ) { // log known error } catch( ... ) { // log unknown error } Since there's a lot of these, I thought I'd write a function to do...

Just introducing myself to TMPing, and came across a quirk

I was just trying to learn the syntax of the beginner things, and how it worked when I was making this short bit of code in VS2008. The code below works in adding numbers 1 to 499, but if I add 1 to 500, the compiler bugs out giving me: fatal error C1001: An internal error has occurred in the compiler. And I was just wondering why that...