Path: utzoo!attcan!uunet!mitel!sce!scs!spl1!laidbak!katzung From: katzung@laidbak.UUCP (Brian Katzung) Newsgroups: comp.os.minix Subject: Re: minix/ST cc BUG (was: peculiarity) Summary: struct_array -> member is broken Keywords: arrays, structures, unions Message-ID: <1769@laidbak.UUCP> Date: 8 Nov 88 16:56:32 GMT References: <257@cstw01.UUCP> Reply-To: katzung@laidbak.UUCP (Brian Katzung) Organization: Lachman Associates, Inc., Naperville, Illinois Lines: 10 Another bug... struct { int m; } sa[1]; sa->m = 0; /* Compiler chokes on this */ (&(*sa))->m = 1; /* But this works */ The compiler complains about applying -> to an array. I haven't tested unions, but I assume that they would fail the same way. -- Brian Katzung laidbak!katzung