tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Matt Moore <moore () shemp ! bucks ! edu>
To: tru64-unix-managers
Subject: [SUMMARY] cxx compiler error
Date: Wed, 26 Nov 1997 15:05:52 +0000	[thread overview]
Message-ID: <96078619210708.tru64-unix-managers.marc@archive.invalid> (raw)


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.
> 

                 reply	other threads:[~1997-11-26 15:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox