From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ACF6E3858CDB; Thu, 2 Mar 2023 19:51:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACF6E3858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677786703; bh=vWsuzwnfhH39iVwqjrPeF1byYsp57JhIFB28qN9cHPg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HggT4JoTRgpbBb7jQvnZ21Ug8lqudcBjFVtQT+oWHXo7FD1B6J1jC4VjPFkctZxln ZMNgCH4oF2LIZ1rp6l8T/h1wRr1Fe7iTgAKL/dE8tT48rQTjxivZPylW4gzTLnzSDH AppIG8vosGUihqJiqL62lP+VSbUpYp1hhpY0dYO8= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108243] [10/11/12 Regression] Missed optimization for static const std::string_view(const char*) Date: Thu, 02 Mar 2023 19:51:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: missed-optimization, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108243 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[10/11/12/13 Regression] |[10/11/12 Regression] |Missed optimization for |Missed optimization for |static const |static const |std::string_view(const |std::string_view(const |char*) |char*) --- Comment #14 from Patrick Palka --- The original testcase is fixed for GCC 13 by comment #12, so that we now correctly constant initialize 'static const string_view foo("bar");'.=