C1001: INTERNAL COMPILER ERROR

I

Irakli Lomidze

Internal Compiler Error

VS.NET 2003 Enterprise Architect

Windowx XP SP1

RAM 1GB

Free DiskSpacs 20GB



Here is Source Code of it.

// This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

public __value struct A { int a;
A() { a = 0; };
};
public __gc class M {
public :
M() { };
void E(A __gc &par) { par.a++; return; }
};



int _tmain()
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"Hello Internal Error");
M *er = new M();
A p();
er->E(__box(p)); // fatal error C1001: INTERNAL COMPILER ERROR
return 0;
}
 
P

Pent

fixed in Whidbey. While I agree that compiler should not have ICE, the code
is invalid.

Above declares a local function that returns A. Most likely not what you
want.
 

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