Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!ucsfcgl!cca.ucsf.edu!root From: root@cca.ucsf.edu (Computer Center) Newsgroups: comp.sys.atari.st Subject: Re: Alcyon C Bug N++ (Alcyon wins again) Summary: Buggy program Message-ID: <1102@ucsfcca.ucsf.edu> Date: 9 Dec 87 03:03:49 GMT References: <8712051307.AA12109@ucbvax.Berkeley.EDU> Organization: Computer Center, UCSF Lines: 21 In article <8712051307.AA12109@ucbvax.Berkeley.EDU>, aking@BFLY-VAX.BBN.COM (Allen King) writes: > Has anybody seen the following bug in version 4.14 of Alcyon C? > > /* > * The Alcyon C compiler (Version 4.14) gets confused with the following > * fragment, thinking that "y" in the assignment to F->y (line 10) is of > * type "struct in". > * > * The fault seems to require that the same names be used in the two structs, Please read K&R page 197 which requires that when the same member names are used in different structs the types must agree from the beginning of the struct through the member in question. Thos Sumner (thos@cca.ucsf.edu) BITNET: thos@ucsfcca (The I.G.) (...ucbvax!ucsfcgl!cca.ucsf!thos) If he says it's "user friendly" watch out; he's a con artist. #include