Re: Internal Compiler error in MSVC++
- From: David Lowndes <davidl@xxxxxxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 17:17:51 +0100
>The forward declare of "class Y" should be treated as a redefinition of Y,
>but it confuses the compiler and causes the Internal Error message.
>
>Is this a known bug? Can it be fixed in the next version?
It appears to be fixed with VS2005 B1. Adding these lines to a console
application:
class X
{
};
typedef X Y;
class Y;
causes the ICE with VS2003, and the following error with VS2005:
error C2371: 'Y' : redefinition; different basic types
Dave
.
- References:
- Internal Compiler error in MSVC++
- From: Stephen Mercer
- Internal Compiler error in MSVC++
- Prev by Date: Internal Compiler error in MSVC++
- Next by Date: Re: HELP! where is windows.h ??
- Previous by thread: Internal Compiler error in MSVC++
- Index(es):
Relevant Pages
|