[SUMMARY] cxx compiler error

From: Matt Moore <moore_at_shemp.bucks.edu>
Date: Wed, 26 Nov 1997 10:05:52 -0500 (EST)

Thanks to:

Pam Woods <axsymgr_at_UAA.ALASKA.EDU>
Ed Bolson <BOLSON_at_FRANGO.HS.WASHINGTON.EDU>
Burch Seymour <bseymour_at_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_at_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.
>
Received on Wed Nov 26 1997 - 16:27:24 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT