[gnu.g++.bug] g++ bug on sequent

whitcomb@VIVALDI.AI.MIT.EDU (Gregg Whitcomb) (08/01/89)

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)