Click here to Skip to main content
15,920,217 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: MC++ controls [solved] Pin
Nish Nishant22-May-02 15:53
sitebuilderNish Nishant22-May-02 15:53 
GeneralRe: MC++ controls [solved] Pin
Albert Pascual22-May-02 17:42
sitebuilderAlbert Pascual22-May-02 17:42 
GeneralRe: MC++ controls [solved] Pin
Nish Nishant22-May-02 18:16
sitebuilderNish Nishant22-May-02 18:16 
GeneralIssue about Sockets Pin
zakimurtaza21-May-02 20:44
zakimurtaza21-May-02 20:44 
GeneralRe: Issue about Sockets Pin
Albert Pascual22-May-02 5:54
sitebuilderAlbert Pascual22-May-02 5:54 
GeneralRe: Issue about Sockets Pin
23-May-02 1:48
suss23-May-02 1:48 
QuestionMicrosoft bug? Pin
Albert Pascual16-May-02 10:35
sitebuilderAlbert Pascual16-May-02 10:35 
AnswerRe: Microsoft bug? Pin
Albert Pascual16-May-02 11:48
sitebuilderAlbert Pascual16-May-02 11:48 
Confirmed is a bug!!! NOW WHAT? Not work around? I am so mad!!!


BUG: "C1001 Internal Compiler" Error Message When You Compile Code with Typename Identifier

--------------------------------------------------------------------------------
The information in this article applies to:

Microsoft Visual C++ .NET (2002)

--------------------------------------------------------------------------------


SYMPTOMS
When you attempt to compile the sample code fragment from the "More Information" section of this article, you receive the following compiler error message:

t.cpp(16) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 2844)



CAUSE
This behavior occurs if a template class contains a derived member method as a typename identifier. The compiler error message occurs only when you compile the code in a Managed C++ project. You do not receive this error message when you use a native code compiler.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



MORE INFORMATION

Steps to Reproduce the Problem
Create a new Managed C++ application, and then replace the default code with the following:
#include "stdafx.h"

class A {
public:
void FA();
int i;
};

class B : public A {
public:
virtual void FB();
int k;
};

template <typename f,="" const="" f="" pf="">
class CLockFunc0 {
public:
CLockFunc0() : m_pF(pF) {}
~CLockFunc0() {}
private:
F m_pF;
};

CLockFunc0<void (b::*)(),="" b::fb=""> t1;
Compile the program.

You receive the error message described in the "Symptoms" section of this article.


--------------------------------------------------------------------------------
Mad | :mad: Mad | :mad:
GeneralFIXED: Re: Microsoft bug? Pin
Albert Pascual17-May-02 6:29
sitebuilderAlbert Pascual17-May-02 6:29 
GeneralRe: FIXED: Re: Microsoft bug? Pin
Nish Nishant17-May-02 16:16
sitebuilderNish Nishant17-May-02 16:16 
GeneralRe: FIXED: Re: Microsoft bug? Pin
Albert Pascual22-May-02 17:44
sitebuilderAlbert Pascual22-May-02 17:44 
GeneralRe: FIXED: Re: Microsoft bug? Pin
Nish Nishant22-May-02 18:13
sitebuilderNish Nishant22-May-02 18:13 
GeneralIJW or P/Invoke Pin
Madhu C15-May-02 13:40
Madhu C15-May-02 13:40 
GeneralRe: IJW or P/Invoke Pin
Nish Nishant16-May-02 17:18
sitebuilderNish Nishant16-May-02 17:18 
GeneralRe: IJW or P/Invoke Pin
Rama Krishna Vavilala16-May-02 17:19
Rama Krishna Vavilala16-May-02 17:19 
GeneralRe: IJW or P/Invoke Pin
Nish Nishant16-May-02 17:29
sitebuilderNish Nishant16-May-02 17:29 
GeneralRe: IJW or P/Invoke Pin
Madhu _Cheriyedath17-May-02 4:21
Madhu _Cheriyedath17-May-02 4:21 
GeneralRe: IJW or P/Invoke Pin
Nish Nishant17-May-02 16:15
sitebuilderNish Nishant17-May-02 16:15 
QuestionHow to call C# public function from inside Managed C++ Pin
Albert Pascual14-May-02 8:57
sitebuilderAlbert Pascual14-May-02 8:57 
AnswerFixed! Re: How to call C# public function from inside Managed C++ Pin
Albert Pascual14-May-02 10:58
sitebuilderAlbert Pascual14-May-02 10:58 
General.NET via unmanaged C++ COM Pin
13-May-02 11:02
suss13-May-02 11:02 
GeneralMaking DLLs Pin
zakimurtaza12-May-02 6:27
zakimurtaza12-May-02 6:27 
GeneralRe: Making DLLs Pin
Nish Nishant13-May-02 4:45
sitebuilderNish Nishant13-May-02 4:45 
Generalwchar_t* to __gc String* Pin
Nish Nishant11-May-02 1:18
sitebuilderNish Nishant11-May-02 1:18 
GeneralRe: wchar_t* to __gc String* Pin
James T. Johnson11-May-02 1:56
James T. Johnson11-May-02 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.