https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124821

--- Comment #4 from M Welinder <terra at gnome dot org> ---
I may be missing something here.

foo sees a string_view.  By what mechanism in C++ can it upgrade that to a
string?

I can see a bit of casting can get it access to the characters in the string,
here just \0, and maybe changing that.  But that's not enough to cause an
allocation.

Reply via email to