Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Doh!  The cxx compiler deleted my source code!
@ 1997-01-10  5:00 Ian Britten
  1997-01-14  5:00 ` Charlie Mitchell
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Britten @ 1997-01-10  5:00 UTC (permalink / 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>   |
------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-01-14  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-10  5:00 Doh! The cxx compiler deleted my source code! Ian Britten
1997-01-14  5:00 ` Charlie Mitchell

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