https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107701
Bug ID: 107701 Summary: [13 Regression] static linking broken when using iostream Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hp at gcc dot gnu.org CC: ppalka at gcc dot gnu.org Target Milestone: --- Since r13-3707-g4e4e3ffd10f53e, static linking with iostreams has been broken. This affects most "embedded" targets (the "*-elf" and "*-eabi" ones; the "vast majority" that don't do dynamic linking) but also plain -static. For a repeater, run "make check-gcc-c++ 'RUNTESTFLAGS=--target_board=unix/-static old-deja.exp=15071.C'" a trivial test-case which just does cout << "hi" << endl;. This works before r13-3707-g4e4e3ffd10f53e but SEGV's afterwards, in my case "Debian 11" x86_64, but expected to manifest on any native build. (BTW, looks like we miss a specific test-case exercising static linking at least with iostreams.)