Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!seismo!brl-adm!brl-smoke!smoke!CRAIG%UREGINA1.BITNET@WISCVM.WISC.EDU From: CRAIG%UREGINA1.BITNET@WISCVM.WISC.EDU (Craig Knelsen) Newsgroups: net.lang.c Subject: Aztec C compiler bug(?) Message-ID: <694@brl-smoke.ARPA> Date: Fri, 9-May-86 01:03:02 EDT Article-I.D.: brl-smok.694 Posted: Fri May 9 01:03:02 1986 Date-Received: Sun, 11-May-86 02:53:43 EDT Sender: news@brl-smoke.ARPA Lines: 40 #include #include #include main() { register ControlHandle p; f((*p)->contrlTitle); } ---- -? cc c.c c.c: line 9: error 29: illegal use of structure: Compiler: Aztec C 1.06G for the Macintosh The problem seems to result from the fact that Aztec changed the declaration of the member 'contrlTitle' in control.h: 1.06D release: char contrlTitle[1]; 1.06G release: Str255 contrlTitle; where Str255 is a typedef for: char * I have tried this example under the Vax 4.2bsd and Sun 2.0 compilers with no complaints from either. Changing the declaration back to what it was in the 1.06D release makes the problem disappear. Removing the register storage class declaration doesn't make a difference as far as the error is concerned. Craig Knelsen Dept. of Computer Science University of Regina Regina, Sk. UUCP: {ihnp4 | utcsri | alberta} !sask!regina!cknelsen