Bug#271300: Not a bug -- sorry.
Apologies for the false alarm. This truly fascinating "feature" of C++ is explained at: http://tinyurl.com/5k5uo
Bug#271300: g++-3.4: ostreams misbehaving when used as temporaries
Package: g++-3.4 Version: 3.4.2-2 Severity: normal This code: #include #include int main() { std::cout << static_cast(std::ostringstream() << 'a' << "a").str() << std::endl; std::cout << static_cast(std::ostringstream() << "a" << "a").str() << std