From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078619210708.tru64-unix-managers.marc@archive.invalid> From: Matt Moore Date: Wed, 26 Nov 1997 15:05:52 +0000 To: tru64-unix-managers Subject: [SUMMARY] cxx compiler error X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078619210708 Thanks to: Pam Woods Ed Bolson Burch Seymour 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 > > 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. >