https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77340
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Not a bug. Debug mode changes the ABI of types, so you need to recompile anything that passes those types between translation units. This is documented at https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode_using.html