fatal error C1001: INTERNAL COMPILER ERROR

S

SharpDog

I am running VC++ 6.0 w/ SP5 installed, MS W2K w/ SP4
installed on a standard IBM PC (256 MB RAM). Here is the
entire message (note that I don't have MSDN installed so I
cannot choose 'Technical Support' from the Help menu):


Compiling...
stl.cpp
c:\dev\test\stl\stl.cpp(6) : fatal error C1001: INTERNAL
COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Please choose the Technical Support command on
the Visual C++
Help menu, or open the Technical Support help
file for more information
Error executing cl.exe.



Here is the (simplified) code reproducing this error:


// stl.cpp : Defines the entry point for the console
application.
//
#include <cstdlib>
#include <set>

using namespace std;

// Define a template class set of strings
typedef set<char *> Stringset;

//Define an iterator for template class set of string
typedef Stringset::iterator StringsetIt;


int main(int argc, char* argv[])
{
if ( argc > 2 ) {

char *pszSchedule = argv[ 1 ];
char *pszOutlet = argv[ 2 ];

Stringset
setControlNos;
StringsetIt
setControlNosItBeg, setControlNosIt,
setControlNosItEnd;

if (( pszSchedule ) && ( pszOutlet )) {

char pszNew[ 16 ] = { 0 };
pair prTest = { 0 };

strcpy( pszNew, pszSchedule );
strcat( pszNew, pszOutlet );

prTest = setControlNos.insert(
string( pszNew ) ); // returns true if insertion occurs
bFound = prTest.second;
//
... true if unique
}
{
setControlNosItBeg =
setControlNos.begin();
setControlNosItEnd =
setControlNos.end();

for ( setControlNosIt =
setControlNosItBeg ; setControlNosIt !=
setControlNosItEnd ; setControlNosIt ++ ) {

char *pStr = *
setControlNosIt;

if ( pStr ) delete pStr;
}
setControlNos.clear();
return ST_ST();
}
}
return 0;
}
 
S

SharpDog

I forgot to mention that the code is not complete so I am
not really trying to solve any coding problems here, just
trying to find out why it wont complete the compile cycle.
 
S

SharpDog

It is also happening with the following program:

#include <stdio.h>

int main(int argc, char* argv[])
{
return 0;
}
 
G

Guest

-----Original Message-----
I am running VC++ 6.0 w/ SP5 installed, MS W2K w/ SP4
installed on a standard IBM PC (256 MB RAM). Here is the
entire message (note that I don't have MSDN installed so I
cannot choose 'Technical Support' from the Help menu):


Compiling...
stl.cpp
c:\dev\test\stl\stl.cpp(6) : fatal error C1001: INTERNAL
COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Please choose the Technical Support command on
the Visual C++
Help menu, or open the Technical Support help
file for more information
Error executing cl.exe.



Here is the (simplified) code reproducing this error:


// stl.cpp : Defines the entry point for the console
application.
//
#include <cstdlib>
#include <set>

using namespace std;

// Define a template class set of strings
typedef set<char *> Stringset;

//Define an iterator for template class set of string
typedef Stringset::iterator StringsetIt;


int main(int argc, char* argv[])
{
if ( argc > 2 ) {

char *pszSchedule = argv[ 1 ];
char *pszOutlet = argv[ 2 ];

Stringset
setControlNos;
StringsetIt
setControlNosItBeg, setControlNosIt,
setControlNosItEnd;

if (( pszSchedule ) && ( pszOutlet )) {

char pszNew[ 16 ] = { 0 };
pair prTest = { 0 };

strcpy( pszNew, pszSchedule );
strcat( pszNew, pszOutlet );

prTest = setControlNos.insert(
string( pszNew ) ); // returns true if insertion occurs
bFound = prTest.second;
//
... true if unique
}
{
setControlNosItBeg =
setControlNos.begin();
setControlNosItEnd =
setControlNos.end();

for ( setControlNosIt =
setControlNosItBeg ; setControlNosIt !=
setControlNosItEnd ; setControlNosIt ++ ) {

char *pStr = *
setControlNosIt;

if ( pStr ) delete pStr;
}
setControlNos.clear();
return ST_ST();
}
}
return 0;
}

.
 
H

Hendrik Schober

SharpDog said:
It is also happening with the following program:

#include <stdio.h>

int main(int argc, char* argv[])
{
return 0;
}

No. Not for me anyway.

Schobi

--
(e-mail address removed) is never read
I'm Schobi at suespammers org

"And why should I know better by now/When I'm old enough not to?"
Beth Orton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top