From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,8464c32178a2099a,start X-Google-Attributes: gidf678f,public X-Google-Thread: 1164f8,8464c32178a2099a,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,8464c32178a2099a,start X-Google-Attributes: gidfee84,public From: Ian Britten Subject: Doh! The cxx compiler deleted my source code! Date: 1997/01/10 Message-ID: #1/1 X-Deja-AN: 208930929 x-sender: britten@caris content-type: TEXT/PLAIN; charset=US-ASCII organization: NBNet.nb.ca mime-version: 1.0 newsgroups: comp.sys.dec,comp.unix.osf.misc,comp.unix.osf.osf1 Hi, I seem to have discovered a bug with the cxx compiler, and was wondering if anyone knows about it, fixed it, etc. Basically, it seems that if you use the '-x cxx' compiler option to handle different file name extensions when compiling, if you interrupt the compiler (^C), then the compiler deletes your input file! Watch. % ll total 10 drwxrwxrwt 2 root system 512 Jan 10 09:12 . drwxr-xr-x 24 root system 1024 Jan 7 10:48 .. -rw-r--r-- 1 britten system 3813 Jan 10 09:12 test.cpp -rw-r--r-- 1 britten system 3813 Jan 10 09:06 test.cpp.save % cxx -c -x cxx test.cpp ^C % ll total 6 drwxrwxrwt 2 root system 512 Jan 10 09:13 . drwxr-xr-x 24 root system 1024 Jan 7 10:48 .. -rw-r--r-- 1 britten system 3813 Jan 10 09:06 test.cpp.save Details: % uname -a OSF1 as2300 V3.2 148 alpha % cxx -V cxx (cxx) DEC C++ V1.3B-0 for DEC OSF/1 (Alpha) [ Lots more snipped ] % what /usr/bin/cxx /usr/bin/cxx: (Hun?) sex.c 1.1 DECwest Compiler Shell 12/16/93 cxxdrv.c 1.47 DEC C++ Compiler 8/12/94 This seems too trivial to show for it to *not* be a bug. Anyone got any information? (It makes stopping a 'make' job very difficult!) Thanks, Ian ------------------------------------------------------------------------ | Ian Britten - Senior Analyst, britten@caris.universal.ca | | Universal Systems Ltd., Fredericton, N.B., Canada | | http://www.universal.ca, Ph (506) 458-8533, Fax (506) 459-3849 | | #include #include #include | ------------------------------------------------------------------------