Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!mucs!cns!news From: vanaards%t7@uk.ac.man.cs (vanaards) Newsgroups: comp.sys.acorn Subject: C compiler bug (ANSI mode) Summary: Bug in struct Keywords: Acorn C compiler version 3.00 Message-ID: <1991Feb22.123151.11136@cns.umist.ac.uk> Date: 22 Feb 91 12:31:51 GMT Sender: Steven van Aardt Organization: Department of Computer Science, University of Manchester UK Lines: 34 I'm at the finishing stages of my finals project, and have come-across a little problem, there doesn't appear to be anything wrong with the code which uses this structure but by removing the 'padding' (int :32) the program will cause the machine to hangup. The hangup occurs within a particular function, but is irregular, even when tested under the same test conditions, it hangs up at different points! Here's the structure : ------------------------------------------------------------------------ typedef struct history_structure *HIST_PTR; typedef struct history_structure { long int vfrom; char *filename; long int from,to; long int lastpos; HIST_PTR next; int :32; /* Compiler bug ? */ HIST_PTR previous; } HIST_REC; ------------------------------------------------------------------------ Any ideas ? +--------------------------------+-----------------------------------------+ | ()()TEVEN () | | | () ()() | | | ()() () ()AN () () | | | () ()() ()()()() +-----------------------------------------+ | ()() () () ()ARDT |JANET E-mail : vanaards@uk.ac.man.cs.p4 | +--------------------------------+-----------------------------------------+