https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94675
--- Comment #18 from Xavier <chantry.xavier at gmail dot com> --- The lib has been recently opensourced so I can share it : https://github.com/Intersec/lib-common/blob/master/src/core/str-stream.h We have 100-200 usages of p_end/s_end/b_end so even if it's possible to patch them all, I am not a big fan of this solution.