home *** CD-ROM | disk | FTP | other *** search
- #if 0
- From: Joseph Puglielli, Crandell Dev Corp, 805-962-1199
- Subject: compiling with Rational stuff will give General Protection Fault
- Status: Fixed in 3.0
- #endif
-
- /* pug226.cpp
- Boston, Michael LaRosa, Feb 26 91
- */
-
- class value
- { // can have data members.
- public:
- value & operator = (char w); //this is needed
- };
-
-
- value& value::operator = (char w)
- { return (*this); }
-
-
- class coord
- {
- value spam; // this line needed.
- };
-
-
- class coordstack
- {
- private:
- coord *stack;
- public:
- int push(void);
- };
-
-
- int coordstack::push(void) // body needed
- {
- *(stack) = *(stack); //This line needed
- return (0);
- }
-
-
-
- /*Gives following error:
- ztcpp1r pug226.cpp
-
- DOS/16M: [35] General Protection Fault at 0080:6D6E in ZTCPP1R.EXE
- code=0000 ss=00B8 ds=00A0 es=0000
- ax=0818 bx=0000 cx=0800 dx=00C0 sp=9A06 bp=9A54 si=02AE di=02AE
- --- errorlevel 255
- */
-