From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,fedbd18693809193,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-10-12 07:55:55 PST Newsgroups: comp.sys.dec Path: bga.com!news.sprintlink.net!sundog.tiac.net!wizard.pn.com!Germany.EU.net!EU.net!CERN.ch!news From: danpop@cernapo.cern.ch (Dan Pop) Subject: Is cc broken on OSF/1 and ULTRIX? Message-ID: Sender: news@news.cern.ch (USENET News System) Organization: CERN European Lab for Particle Physics Date: Wed, 12 Oct 1994 14:00:00 GMT ues5:~/tmp 25> cat test.c #include 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