On Wed, Nov 18, 2026 at 12:53:14PM -0500, Marek Polacek wrote:
> Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk?
>
> -- >8 --
> 1) In other places we free ostr.text after calling cpp_translate_string
> if it didn't fail.
>
> 2) tree.h says that TREE_STRING_LENGTH is like sizeof, not strlen. Other
> places use strlen+1 for istr.len, so we shouldn't add 1 to TREE_STRING_LENGTH.
>
> gcc/cp/ChangeLog:
>
> * reflect.cc (eval_data_member_spec): Free ostr.text.
> (eval_exception__S_exception_cvt_tofrom_utf8): Don't add 1 to
> TREE_STRING_LENGTH.
LGTM, thanks.
Jakub