Xref: utzoo comp.sys.att:10440 comp.unix.sysv386:579 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mtndew!friedl From: friedl@mtndew.Tustin.CA.US (Steve Friedl) Newsgroups: comp.sys.att,comp.unix.sysv386 Subject: C compiler bugs on 386 and 3B2 Message-ID: <522@mtndew.Tustin.CA.US> Date: 21 Sep 90 05:58:07 GMT Followup-To: comp.sys.att Organization: VSI*FAX Tech Ctr, Tustin, CA Lines: 31 Hi folks, Two problems with the C compiler on the 386 (AT&T SVR3.2.1) and the 3B2 (SVR3.2). First, try this as root from some subdirectory: # cc foo.c -o ../bin where you *really* mean # cc foo.c -o ../bin/foo It trashes the mentioned directory and requires an fsck to reattach the files previously found underneath. Strictly speaking it's not a bug because it *did* do what I asked, but it is still unfriendly behavior. Bug 2 is found on both 3B2 and 386 compilers. Make a file with just: static char foo[] = (char *)"foo"; This causes a core dump on the 386 and a "compiler error" on the 3B2. This sequence came out by accident, but it still shouldn't core dump. Steve -- Stephen J. Friedl, KA8CMY / I speak for me only / Tustin, CA / 3B2-kind-of-guy +1 714 544 6561 / friedl@mtndew.Tustin.CA.US / {uunet,attmail}!mtndew!friedl Jesse Helms for U.S. Supreme Court Justice