wampler@unmvax.UUCP (03/07/86)
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