Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!inria!crin!tombre From: tombre@crin.UUCP (Karl Tombre) Newsgroups: comp.lang.c Subject: Re: Bug in cc on VAX 11/785 with Berkeley 4.2 ? Message-ID: <292@crin.UUCP> Date: Thu, 16-Jul-87 04:01:29 EDT Article-I.D.: crin.292 Posted: Thu Jul 16 04:01:29 1987 Date-Received: Sat, 18-Jul-87 07:53:08 EDT References: <264@crin.UUCP> <6988@sci.UUCP> Reply-To: tombre@crin.UUCP (Karl Tombre) Organization: CRIN - INRIA Lorraine, Nancy, France Lines: 21 In article <6988@sci.UUCP> kenm@sci.UUCP (Ken McElvain) writes: >Probably somewhere above the function pos_ecrit there is a bad >extern function declaration looking something like > >int foo(c); > >The argument c of foo, which should't be there but is not checked for, >gets prepended onto the argument list for pos_ecrit. Exactly ! That's what happened. Thanks to all who provided hints for finding this. But isn't it definitively a compiler bug, that the bad extern declaration isn't detected and leads to problems later ? -- --- Karl Tombre @ CRIN (Centre de Recherche en Informatique de Nancy) EMAIL : tombre@crin.UUCP POST : Karl Tombre, CRIN, B.P. 239, 54506 VANDOEUVRE CEDEX, France PHONE : +33 83.91.21.25