Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Gregg Whitcomb
Tue, 01 Aug 1989 00:53
g++ bug on sequent (is there a fix for this?)
Author: 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)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads