From: danpop@cernapo.cern.ch (Dan Pop)
Subject: Is cc broken on OSF/1 and ULTRIX?
Date: Wed, 12 Oct 1994 14:00:00 GMT [thread overview]
Message-ID: <CxKC80.5xr@news.cern.ch> (raw)
ues5:~/tmp 25> cat test.c
#include <stdio.h>
main()
{
int i;
i = 4 //* harmless comment here */ 2
;
printf("%d\n", i);
return 0;
}
ues5:~/tmp 26> cc test.c
ues5:~/tmp 27> ./a.out
4
ues5:~/tmp 28> c89 test.c
ues5:~/tmp 29> ./a.out
2
ues5:~/tmp 30> uname -a
OSF1 ues5.cern.ch V2.1 250 alpha
I got the same results on ULTRIX, too.
c89 does the right thing, but cc doesn't. C++ style comments are not
supported by either K&R or ANSI C and this feature (I'd call it bug)
is not documented in the man page.
cc on AIX, Solaris, SunOS, IRIX, HPUX and Domain/OS behaves correctly.
Will DEC fix its cc?
Dan
--
Dan Pop
CERN, CN Division
Email: danpop@cernapo.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
next reply other threads:[~1994-10-12 14:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-12 14:00 Dan Pop [this message]
1994-10-12 15:39 ` Is cc broken on OSF/1 and ULTRIX? Ron Natalie
1994-10-13 15:29 ` Wayne Scott
1994-10-12 17:46 ` Rick Murphy
1994-10-12 22:35 ` Dan Pop
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