(C++) srtringstream doesn't work

Originator:macporter90210
Number:rdar://10588629 Date Originated:Dec 15
Status:Open Resolved:
Product:OSX SDK Product Version:10.6.8
Classification:Serious Bug Reproducible:Always
 
Summary:
(C++) srtringstream doesn't work

Steps to Reproduce:
Build and run the following program.
#define _GLIBCXX_DEBUG
#include <iostream>
#include <sstream>

int main (int argc, const char * argv[]) {
    std::ostringstream ostr;
    ostr << 1.2;
    std::cout << "Result: " << ostr.str() << std::endl;
    return 0;
}
Expected Results:
Result: 1.2
Actual Results:
Result: 0
Regression:

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!