* [SUMMARY] cxx compiler error
@ 1997-11-26 15:05 Matt Moore
0 siblings, 0 replies; only message in thread
From: Matt Moore @ 1997-11-26 15:05 UTC (permalink / raw)
To: tru64-unix-managers
Thanks to:
Pam Woods <axsymgr@UAA.ALASKA.EDU>
Ed Bolson <BOLSON@FRANGO.HS.WASHINGTON.EDU>
Burch Seymour <bseymour@encore.com>
Burch's answer was the best. Here it is:
Yes, this is a know problem. I found it about 6 months ago and went
to Digital service. They knew about it. They said it was not legal
C++ syntax, but agreed that the compiler should handle it a LOT better
than with an assertion. BTW, your example is a bit long, the offending
statement is:
x = x++;
I have no idea whether it really *is* illegal or not. But it is
excess code where x++; will do the same thing.
Original Message:
> Has anyone seen a problem like this? This is a pretty simple program
> and compiles and runs fine under g++. We're using DU 4.0b and CXX v5.5.
>
> >When compileing the cxx file below, the student received the following
> >message:
> >
> >Assertion failure: Compiler internal error - please submit problem report
> >GEM ASSERTION, Compiler internal error - please sumbit problem report
> >Fatal error in:/usr/lib/cmplrs/cxx/gemc_cxx Terminated
>
> #include <iostream.h>
>
> int main()
> {
> int x=0;
> while (x < 100)
> {
> x = x++;
> cout << "X = " << x << endl;
> }
> }
>
>
> -----------------------------------------------------------------------
> Matt Moore N3LPH Bucks County Community College
> E-mail: moorem@bucks.edu Swamp Road Newtown PA 18940
> -----------------------------------------------------------------------
> Windows 95: A 32-bit patch for a 16-bit GUI shell running on top of an
> 8-bit operating system written for a 4-bit processor by a 2-bit company
> who cannot stand 1 bit of competition.
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-11-26 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-26 15:05 [SUMMARY] cxx compiler error Matt Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox