http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43734
--- Comment #10 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #8 from Rolf Eike Beer <e...@sf-mail.de> --- > I get the same problem using gcc 4.5, 4.7, and 4.8 on a Sun Fire V240 running > Gentoo. Even if the compiler says "Gentoo" it is built with use flag > "vanilla", > i.e. without any Gentoo patches. > > The test code is simply: > > #include <iostream> > > int main(void) { > std::cerr << "test"; > return 0; > } > > Which will output "test" and then segfault. I can reproduce this at will and > can give you further information (traces, asm, poking with gdb, whatever), > just > ask. I have tried it with both binutils 2.23.1 and .2, the result is the same: Works just fine for me with mainline g++ on sparc-sun-solaris2.11 configured with gas/gld 2.23.2. I don't have the least idea what's going on here, and cannot debug issues on Linux/SPARC since I don't have access to that platform. Rainer