https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108243
Jiang An <de34 at live dot cn> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |de34 at live dot cn --- Comment #8 from Jiang An <de34 at live dot cn> --- This seems a bug, not merely missing of optimization. The string_view object should always be statically initialized, because it has static storage duration and its initializer is a constant iniitializer.