This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Crash with 'cout << "";'
- To: Richard Atterer <atterer at informatik dot tu-muenchen dot de>
- Subject: Re: Crash with 'cout << "";'
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Tue, 19 Oct 1999 09:27:21 -0700 (PDT)
- cc: libstdc++ at sourceware dot cygnus dot com
Seems to be fine with CVS sources. . .
-Benjamin
> #include <iostream>
>
> struct Out { } out;
>
> ostream& operator<<(ostream& s, const Out) {
> return s; // executes OK
> }
>
> int main() {
> cout << out << endl;
> cout << ""; // segfault here if string empty
> return 0;
> }