Re: Strangest VC8 bug yet
- From: Edward Diener <eddielee_no_spam_here@xxxxxxxxxxxxxx>
- Date: Wed, 03 May 2006 14:44:39 -0400
Victor Bazarov wrote:
Edward Diener wrote:I have a source file [..]
The most amazing thing about this error is that the error message shows that an extra 's' has been added to the
name of the class in the error message, so that using the example
above the error message would be:
error C3083: 'SomeClasss': the symbol to the left of a '::' must be a
type
[..]
Please post the minimal amount of code, complete, so we could also try
it on our systems, and so you have something to post as an example when
you submit a bug report to MS.
If I try to reduce the code by removing lines which would ordinarily not be included anyway because of preprocessor #if commands, the bug goes away. The source is being used by more than one version of VC++ and I have preprocessor commands like:
#if defined(_MSC_VER) && _MSC_VER < 1300
// some code or header file include
#endif
Compiling for VC8, in one situation if I comment out the above lines, the bug still shows later on in the code but if I totally remove the lines the bug goes away !!! Attempting to post the full source which fails now would be not only a large source file, but would require other fairly large header files. Of course the workaround for me is to create a separate source version specifically for VC8, without any of the preprocessor #if lines, since that compiles OK.
But there is a serious bug here somewhere in the compiler which is normally being buried The source file is a large one, with 3377 lines and a single routine made up largely of switch statements, and nested switch statements, taking up about 2200 lines. But of course the compiler should tell me if I have gone over some mandated limit rather than just failing.
What I might try to do is create a project and post it as a bug to MS using the exact source which is failing. I have run into a number of VC8 bugs, and quite frankly I am tired of having to fight my way through these. VS2005 is a beautiful environment but MS did not test all the VC8 possibilities as far as I can see. I know it is a huge compiler now, with support for many different type situations from .NET C++/CLI code through MFC and ATL to plain C++ and Windows API programming. But in just over a couple of months of using it I have discovered a number of compiler bugs myself with which I must find workarounds. This is very disappointing to say the least.
.
- References:
- Strangest VC8 bug yet
- From: Edward Diener
- Re: Strangest VC8 bug yet
- From: Victor Bazarov
- Strangest VC8 bug yet
- Prev by Date: Re: how to create .iso file
- Next by Date: Re: About get the information of a folder
- Previous by thread: Re: Strangest VC8 bug yet
- Next by thread: Re: Strangest VC8 bug yet
- Index(es):
Relevant Pages
|