Article View: net.micro.pc
Article #5893cii-c86 "feature"
From: wampler
Date: Thu, 06 Mar 1986 22:02
Date: Thu, 06 Mar 1986 22:02
24 lines
1219 bytes
1219 bytes
I've been happily using Computer Innovations C-86 compiler for
several years now, and just found this bug. I called CII, and
they told me it was a feature! This is bizarre for sure.
#include <stdio.h>
main()
{
printf("hello world\n");
printf("/* this is supposed to print, not be a comment!\n");
printf("and this is the second line. */\n");
}
gives as output:
hello world
<blank line>
That's right! It ate the "comment" in the printf's. Other than
this really strange feature, I haven't found a bug in a couple of years.
--
Dr. Bruce E. Wampler
University of New Mexico
Department of Computer Science
Albuquerque, NM 87131
..{ucbvax | seismo!gatech | ihnp4!lanl}!unmvax!wampler
Technical Details
Message-ID:
<1007@unmvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!cmcl2!lanl!unm-la!unmvax!wamplerShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!cmcl2!lanl!unm-la!unmvax!wampler From: wampler@unmvax.UUCP Newsgroups: net.micro.pc Subject: cii-c86 "feature" Message-ID: <1007@unmvax.UUCP> Date: Thu, 6-Mar-86 17:02:25 EST Article-I.D.: unmvax.1007 Posted: Thu Mar 6 17:02:25 1986 Date-Received: Sun, 9-Mar-86 08:41:41 EST Distribution: net Organization: Univ. of New Mexico, Albuquerque Lines: 24