https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106743
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Reduced test-case: cat pr106743.ii struct basic_ostream {}; template <typename _Traits> void operator<<(_Traits, char); basic_ostream cout; int main___tmp; int main() { int a = ({ __asm__("xchgb %b0, %h0" : "=q"(main___tmp)); main___tmp; }); cout << a; }