https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61735
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|basic_string bug when |pre-C++11 basic_string bug
|type_size is char. |when type_size is char
| |(-D_GLIBCXX_USE_CXX11_ABI=0
| |)
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I will note that the (default) newer basic_string that was included in GCC 5+
does not have this issue but the pre-c++ ABI basic_string still has this issue.
That is you need -D_GLIBCXX_USE_CXX11_ABI=0 to hit the issue now.