From: Ian Britten <britten@caris.universal.ca>
Subject: Doh! The cxx compiler deleted my source code!
Date: 1997/01/10 [thread overview]
Message-ID: <Pine.SUN.3.91.970110090142.26095H-100000@caris> (raw)
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 <disclaimer.h> #include <quote.h> #include <asciiart.h> |
------------------------------------------------------------------------
next reply other threads:[~1997-01-10 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-10 5:00 Ian Britten [this message]
1997-01-14 5:00 ` Doh! The cxx compiler deleted my source code! Charlie Mitchell
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