Article View: net.bugs
Article #121C compiler bug
From: ravi
Date: Tue, 14 Jun 1983 23:51
Date: Tue, 14 Jun 1983 23:51
39 lines
872 bytes
872 bytes
A very simple program
#include <stdio.h>
main ()
{
char *c[],*d[];
*c = "i am a string";
*d = "so what";
printf("%s\n",*c);
printf("%s\n",*d);
}
on 4.1bsd produced
so what
so what
whereas the C compiler on the TOPS-20 and other variations of the above
program on 4.1 bsd produced the correct result.
I am curious to find out WHY?.
ravi
Fairchild Research,
Palo Alto,CA.
Technical Details
Message-ID:
<131@flairvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!genrad!decvax!decwrl!flairvax!raviShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!genrad!decvax!decwrl!flairvax!ravi From: ravi@flairvax.UUCP Newsgroups: net.bugs,net.lang.c Subject: C compiler bug Message-ID: <131@flairvax.UUCP> Date: Tue, 14-Jun-83 19:51:28 EDT Article-I.D.: flairvax.131 Posted: Tue Jun 14 19:51:28 1983 Date-Received: Wed, 15-Jun-83 20:28:15 EDT Lines: 39