This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Crash with 'cout << "";'


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;
> }

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