Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Is cc broken on OSF/1 and ULTRIX?
@ 1994-10-12 14:00 Dan Pop
  1994-10-12 15:39 ` Ron Natalie
  1994-10-12 17:46 ` Rick Murphy
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Pop @ 1994-10-12 14:00 UTC (permalink / 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


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

end of thread, other threads:[~1994-10-13 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-12 14:00 Is cc broken on OSF/1 and ULTRIX? Dan Pop
1994-10-12 15:39 ` Ron Natalie
1994-10-13 15:29   ` Wayne Scott
1994-10-12 17:46 ` Rick Murphy
1994-10-12 22:35   ` Dan Pop

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