Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site topaz.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!columbia!topaz!prindle@nadc From: prindle@nadc Newsgroups: net.micro.cbm Subject: C-Power bug report (Brian Hilchie, are you there?) Message-ID: <2318@topaz.ARPA> Date: Wed, 19-Jun-85 10:12:41 EDT Article-I.D.: topaz.2318 Posted: Wed Jun 19 10:12:41 1985 Date-Received: Thu, 20-Jun-85 11:39:00 EDT Sender: daemon@topaz.ARPA Organization: Rutgers Univ., New Brunswick, N.J. Lines: 50 From: prindle@NADC I've been relatively unsuccessful in reporting the following bugs in C-Power to the appropriate authorities (even using Pro-Line's own BBS): 1. The "modf" function does not return the correct value for the whole part of the floating point argument; the fractional part is ok. 2. The compiler gives an undefined name error when attempting to compile a pair of struct templates which reference each other, yielding a self referential structure when the structure tag from one template is used to declare an actual structure (perfectly legal C): ... /*program fragment*/ struct nodelink { struct node *previous; <--ERROR IS INDICATED HERE struct node *next; } ; struct node { int datum; struct nodelink link; } ; struct node item1; /*these nodes contain pointers to other nodes*/ struct node item2; ... 3. The compiler gives a syntax error after the closing brace of this incredibly simple (and legal) C program (read page 52 of Kernighan and Ritchie): main() { int i; int j=1; int k=2; if (j==1) if (k==2) i=0; else i=1; else i=2; } <--ERROR IS INDICATED HERE All of the above errors occur in both versions 2.4 and 2.5. So, if Brian Hilchie or anyone else related to C-Power is watching this list, please note the aforementioned bugs so they can get fixed in the next update!