Path: utzoo!utgpu!watmath!clyde!att!cbnews!lvc From: lvc@cbnews.ATT.COM (Lawrence V. Cipriani) Newsgroups: comp.lang.c Subject: Re: Two more common C compiler bugs Message-ID: <2454@cbnews.ATT.COM> Date: 4 Dec 88 16:06:23 GMT References: <2432@cbnews.ATT.COM> <1988Dec3.221300.28890@utzoo.uucp> Reply-To: lvc@cbnews.ATT.COM (Lawrence V. Cipriani) Organization: AT&T Bell Laboratories Lines: 18 In article <1988Dec3.221300.28890@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: >In article <2432@cbnews.ATT.COM> lvc@cbnews.ATT.COM (Lawrence V. Cipriani) writes: >> struct a >> { >> int b, c, d /* ; */ >> }; > >Uh, why is failing to compile this a bug? The semicolon is not optional. The bug was in the compilers that accepted it. The UTS(r) C compiler was correct in rejecting it. I must say the error handling was atrocious, about 24 lines of rubbish. Sorry for the confusion. UTS is a trademark of Amdahl Corporation. -- Larry Cipriani, AT&T Network Systems, Columbus OH, Path: att!cbnews!lvc Domain: lvc@cbnews.ATT.COM