Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!unido!iaoobelix!mueller From: mueller@iaoobelix.UUCP (Joachim Mueller) Newsgroups: comp.lang.c++ Subject: Problem with stream lib due to cfront bug Message-ID: <293@iaoobelix.UUCP> Date: 9 May 89 16:04:17 GMT Reply-To: mueller@iaoobel.UUCP (Joachim Mueller) Organization: Fraunhofer Institut fuer Arbeitswirtschaft und Organisation Lines: 23 Recently we installed the AT&T 1.2.1 Compiler on SUN 3/60 with OS3.5. But we have major problems with the stream library. What we found is that the cfront seems to optimize a variable away which is needed. In stream.h the overflow function has the default EOF for the argument c: virtual overflow(int c=EOF); If we translate the code for filebuf.c with cfront 1.2.1 the variable _au0_c does not appear in the resulting C code. virtual overflow(int c); But if we delete the default value for the variable c then _au0_c is kept. It seems to be an obvious bug. Has anybody already solved this problem? Joachim Mueller UUCP: uunet!unido!iaoobel!mueller BITNET: mueller@DS0IFF5 VOICE: +49-711-61954-41