This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]