https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84667
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Elmar Stellnberger from comment #0) > Things work well however if I use the standard constructor instead of an > assignment: > > inline xstrbuf( base_str_const s ) : base_str( > const_cast<char_type*>(s.chars), s.length ) { bufParams = xstrbuf_constBuf; > }; Instead of what? Where are we supposed to be looking? > Any feedback would be very appreciated! Your code is almost unreadable.