Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!mit-eddie!uw-beaver!tektronix!tekcrl!tekgvs!toma From: toma@tekgvs.TEK.COM (Tom Almy) Newsgroups: comp.sys.ibm.pc Subject: YATCB (Yet Another Turbo C Bug) Message-ID: <2519@tekgvs.TEK.COM> Date: Tue, 4-Aug-87 18:04:10 EDT Article-I.D.: tekgvs.2519 Posted: Tue Aug 4 18:04:10 1987 Date-Received: Fri, 7-Aug-87 06:45:36 EDT Reply-To: toma@tekgvs.UUCP (Tom Almy) Distribution: world Organization: Tektronix, Inc., Beaverton, OR. Lines: 22 I discovered this bug in version 1.0 (of course!). It is demostrated in the following program, the simplest example I could muster, which will produce the "Irreducible Expression Tree" fatal compilation error. struct { unsigned foo:1; } bar ; x() { bar.foo++; } The fix (besides not using bit fields) is to replace "bar.foo++" with "bar.foo += 1". Tom Almy