Simple Code Produce "INTERNAL COMPILER ERROR" 
Author Message
 Simple Code Produce "INTERNAL COMPILER ERROR"

/* compiling follow code with VC++.NET (CL.EXE version 13.00.9466)
   produce compiler error. Is this a bug?
*/

#define EXPORT __declspec (dllexport)
class EXPORT BaseA
{
public:
 virtual ~BaseA(void);

Quote:
};

class EXPORT BaseB
{
public:
 virtual int foo();

Quote:
};

template <class C>
class TC : public BaseA, public BaseB
{};

class EXPORT test : public TC<int>
{

Quote:
};

/*
Compile line:
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MDd
/YX"stdafx.h" /Fp"Debug/test.pch" /Fo"Debug/"
/Fd"Debug/vc70.pdb" /W3 /nologo /c /Wp64 /ZI /TP

Result:
f:\test\test\test.cpp(19) : fatal error C1001: INTERNAL COMPILER ERROR
        (compiler file 'msc1.cpp', line 2844)
         Please choose the Technical Support command on the Visual C++
         Help menu, or open the Technical Support help file for more
information
*/



Tue, 10 Aug 2004 01:36:37 GMT  
 Simple Code Produce "INTERNAL COMPILER ERROR"
It's a bug.  See the following message for all the details:

http://groups.google.com/groups?hl=en&selm=%232a3l5LtBHA.1600%40tkmsf...

Jason Shirk
VC++ Compiler Team


Quote:
> /* compiling follow code with VC++.NET (CL.EXE version 13.00.9466)
>    produce compiler error. Is this a bug?
> */

> #define EXPORT __declspec (dllexport)
> class EXPORT BaseA
> {
> public:
>  virtual ~BaseA(void);
> };

> class EXPORT BaseB
> {
> public:
>  virtual int foo();
> };

> template <class C>
> class TC : public BaseA, public BaseB
> {};

> class EXPORT test : public TC<int>
> {
> };

> /*
> Compile line:
> /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MDd
> /YX"stdafx.h" /Fp"Debug/test.pch" /Fo"Debug/"
> /Fd"Debug/vc70.pdb" /W3 /nologo /c /Wp64 /ZI /TP

> Result:
> f:\test\test\test.cpp(19) : fatal error C1001: INTERNAL COMPILER ERROR
>         (compiler file 'msc1.cpp', line 2844)
>          Please choose the Technical Support command on the Visual C++
>          Help menu, or open the Technical Support help file for more
> information
> */



Tue, 10 Aug 2004 13:40:43 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. internal compiler error with "const"

2. VC++6 "Internal compiler error"

3. internal compiler error with "using" statement

4. Compile error "Internal error during SetupPhase"

5. VC71 c++ internal compiler error (with very simple code)

6. Linker failure "Internal error during EmitMap"

7. ISAPI extension causes "Internal Server Error"

8. /Gm option (minimal rebuild) produces INTERNAL COMPILER Error with boost::graph

9. Template invocation produces internal compiler error

10. Error "free"-ing "malloc"-ed memory

11. Compiler warnings when "Generating Code"

12. "Writing Solid Code" - compiler warnings

 

 
Powered by phpBB® Forum Software