http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51873
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-16 17:46:53 UTC --- Works for me if I ensure the right libstdc++.so is found, via RPATH or LD_LIBRARY_PATH (gdb) p msg $1 = {<std::basic_iostream<char, std::char_traits<char> >> = { ... lots of output ... }}