home *** CD-ROM | disk | FTP | other *** search
- #if 0
- Date: Mon, 22 Apr 91 18:14:14 -0400
- From: ima.isc.com!andya@uunet.uu.net
- Subject: compiler crash on bad code
- Status: Fixed in 3.0
- #endif
-
- //The following incorrect code crashes the 2.18 version of ztc
- //when run under windows, even with the -e switch.
-
- typedef long integer;
-
- typedef integer boolean;
-
- // #include "defs.h"
-
- class c
- {
- boolean isEmpty(void) { return isEmpty; };
- int aMember;
- }
-
-
- #if 0
- make test.obj
- ztc -e -br -p -u -c -ml -D__ZTC__ -g -W -DMS_WINDOWS -DARCHIVER -DZORTECH18 test.cpp
- ztcpp1r -e -p -u -ml -D__ZTC__ -g -DMS_WINDOWS -DARCHIVER -DZORTECH18 -oF:\ztc_9F7.tmp test.cpp
- }
- ^
- preprocessed(10) : Error: cannot implicitly convert
- from:<memptr c><far C++ func() returning><long>
- to :<long>
-
- DOS/16M: [35] General Protection Fault at 00FD:F348 map=0080 in ZTCPP1R.EXE
- code=0000 ss=00F5 ds=011D es=0000
- ax=000F bx=0000 cx=0009 dx=001A sp=13C2 bp=1402 si=000F di=0012
- --- errorlevel 255
-
- --- errorlevel 255
-
- #endif
-