Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!VIVALDI.AI.MIT.EDU!whitcomb From: whitcomb@VIVALDI.AI.MIT.EDU (Gregg Whitcomb) Newsgroups: gnu.g++.bug Subject: g++ bug on sequent (is there a fix for this?) Message-ID: <8908010053.AA12407@vivaldi> Date: 1 Aug 89 00:53:49 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 36 g++ version: 1.35.0+ libg++ version: 1.35 config: sequent-i386 example: sequent% more foo.cc #include #include String t ( int i ) { String s = dec( i ) ; return s; } main() { for (int i = 1 ; i < 10 ; i++ ) { cout << t(i) << "\n"; } } sequent% g++ -g foo.cc -o foo sequent% foo 123456789sequent% ------------------------ if t(i) and "\n" are switched, it works fine. if "\n" is substituted with '\n': g++ -g foo2.cc -o foo2 sequent% foo2 112233445566778899sequent% ------------------------ -Gregg Whitcomb (whitcomb@vivaldi.Berkeley.EDU)