https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128900
--- Comment #1 from Filip Sajdak <filip.sajdak at gmail dot com> --- A correction about the attachment, with regard to the GCC AI policy (https://gcc.gnu.org/ai-policy.html), which I should have read before attaching it. The attached diff was written with the help of an LLM. It is therefore not offered as a patch submission. Please take it only as an analysis: it shows where the length is dropped and what a fix can gain. The description calls it a "patch" in several places; read that as "experiment". The reproducer, the builds, the measurements and the test runs are mine to answer for: they were run on my machine with compilers built from releases/gcc-16.2.0 and from trunk 9eb44775b9. The fix itself is small in idea: get_string_literal already has the strlen of the translated string, and the four callers could pass it to the two-argument string_view constructor instead of the pointer alone.
