This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: strstream.h (deprecated) is broken
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: VEKSLER at il dot ibm dot com (Michael Veksler)
- Cc: Joe dot Buck at synopsys dot COM (Joe Buck), gcc at gcc dot gnu dot org
- Date: Fri, 31 May 2002 14:08:35 -0700 (PDT)
- Subject: Re: strstream.h (deprecated) is broken
> > gcc version 3.2 20020530 (experimental)
> >
> > $ g++ -Wno-deprecated t.cpp
> > $ ./a.out
> > Segmentation fault (core dumped)
> > $ cat t.cpp
> > #include <strstream.h>
> > #include <iostream>
> >
> > int main()
> > {
> > strstream s;
> > for (unsigned i=0 ; i!= 8 ; ++i)
> > s << i << std::endl;
> > s << std::ends;
> >
> > return 0;
> > }
By the way, I can't duplicate the crash with 20020529 on Solaris.
What platform did you use?