Article View: gnu.g++.bug
Article #312g++ bug on sequent (is there a fix for this?)
From: Gregg Whitcomb
Date: Tue, 01 Aug 1989 00:53
Date: Tue, 01 Aug 1989 00:53
36 lines
1036 bytes
1036 bytes
g++ version: 1.35.0+
libg++ version: 1.35
config: sequent-i386
example:
sequent% more foo.cc
#include <stream.h>
#include <String.h>
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)
Technical Details
Message-ID:
<8908010053.AA12407@vivaldi>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!VIVALDI.AI.MIT.EDU!whitcombShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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