class CString; // <<<< here
Compiling...
cl : Command line warning D4025 : overriding '/EHs' with '/EHa'
StdAfx.cpp
d:\dev\CURRENT\retail\..\Common\Stuff\XHelpers.h(30) : fatal error C1001:
INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 2701)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
The error must be something that you didn't
post. This
class CString;
int main()
{
return 0;
}
compiles fine for me.
VC usually ICEs on real syntax errors. Of
course, with an error message like this, it
is hard to find the cause. I suggest you
try to throw together a simple repro case
(preferrably <50LOC). It might well be you
find the error while doing this. Otherwise
someone here might.
Also, if there's a repro it can be added to
MS' bug DB, so we have a chance to get this
fixed for the next version.
Schobi
--
Spam...@gmx.de is never read
I'm Schobi at suespammers dot org
"Sometimes compilers are so much more reasonable than people."
Scott Meyers
I was thinking to do what you suggested: create a test project to duplicate
the error. I hope I'll have time.
Thanks!
"Hendrik Schober" <Spam...@gmx.de> wrote in message
news:eWtnQhCC...@TK2MSFTNGP09.phx.gbl...
--
kind regards, michael
while(!sleep())
++sheep;
It seems that if you have a header file that has
class CString;
and you include this header file into "stdafx.h" you get that error.
I'm going to send the test project to MS.
Thanks!
"Michael Buechel" <Mue...@gmx.at> wrote in message
news:%23G%232X4DC...@TK2MSFTNGP09.phx.gbl...
#if _MFC_VER < 0x0700
class CString;
#endif
CString is not a class in MFC anymore. It is a template in ATL so forward
declarations are invalid.
"Daniel P." <danu...@hotmail.comU> wrote in message
news:%23%23VJp%23DCEH...@TK2MSFTNGP11.phx.gbl...
[strstream]
// CLASS istringstream
class istringstream
: public istream // <<< here
D:\visualcpp\Vc7\include\strstream(120) : fatal error C1001: INTERNER COMPILERFEHLER
(Compilerdatei 'msc1.cpp', Zeile 2701)
Wählen Sie im Menü '?' von Visual C++
den Befehl 'Software Service', oder öffnen Sie die Hilfedatei für den Software Service, um weitere Informationen zu erhalten
very important, i think this is a bug.
is there a patch?
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
"alex tugarev" <ma...@alex-t.de> wrote in message
news:uroKWirC...@TK2MSFTNGP09.phx.gbl...
You also have an ICE. It might be triggered by the
same error, or it might not.
> [strstream]
> // CLASS istringstream
> class istringstream
> : public istream // <<< here
>
> D:\visualcpp\Vc7\include\strstream(120) : fatal error C1001: INTERNER COMPILERFEHLER
> (Compilerdatei 'msc1.cpp', Zeile 2701)
> Wählen Sie im Menü '?' von Visual C++
> den Befehl 'Software Service', oder öffnen Sie die Hilfedatei für den Software Service, um weitere Informationen zu
> erhalten
>
>
> very important, i think this is a bug.
An ICE certainly is a bug.
> is there a patch?
Show some code (<20LOC) that we can paste
into our editor, compile, and see the error.
To reproduce, forward declare the CString in the header file.
If you just remove the forward declaration, it should work fine.
Thanks,
G
___
Newsgroups brought to you courtesy of www.dotnetjohn.com
I'm not sure what you mean. I _did_
forward declare 'CString' in the code
below.
> Thanks,
> G
> [...]
> > The error must be something that you didn't
> > post. This
> >
> > class CString;
> >
> > int main()
> > {
> > return 0;
> > }
> >
> > compiles fine for me.
> [...]