C1001: INTERNAL COMPILER ERROR

  • Thread starter Thread starter Irakli Lomidze
  • Start date Start date
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;
}
 
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.
 
Back
Top