https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91876
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> ---
The gdb backtrace shows your program is linked to the wrong libstdc++.so that
comes from the gcc-4.4.7 system compiler, not the one from gcc-7.2.1 that you
compiled with.
See
https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths
and
https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dynamic_or_shared.html#manual.intro.using.linkage.dynamic