By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,101 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,101 IT Pros & Developers. It's quick & easy.

fatal error C1001: INTERNAL COMPILER ERROR

P: n/a
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;
}
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

--------------------
| From: "Irakli Lomidze" <Ir************@access.sanet.ge>
| Subject: fatal error C1001: INTERNAL COMPILER ERROR
| Date: Sun, 9 Nov 2003 18:26:31 +0400
| Lines: 45
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#Z**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 212.72.149.173
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:30224
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| 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;
| }
|
|
|

Thank you for reporting this. The __box(p) expression is invalid. It will
be addressed in the next version of the C++ compiler.

--
Silviu Guea, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.