From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C1BF385B507; Fri, 24 Feb 2023 14:10:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C1BF385B507 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677247814; bh=0GAbmBXrDLYEvcvQDIwl/FYVDhCzOon9vgLKKUum1vE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hAkAbw2K7ylAPLK9zbWKqFgVStzD2SYm0jp76PNvxbvgGhimg8GGbsWN2L5jQixMG U3Foqs9Ppfscw+uK4mzZh+5MwSjAhAV9bCl+ewVuLWnLeYJlTUs7if+rrwZoSLafnf usUEtJhwNVc4UmVC4IA5NjSHUSBaGiOsVhuku8sU= From: "wielkiegie at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105329] [12/13 Regression] Bogus restrict warning when assigning 1-char string literal to std::string since r12-3347-g8af8abfbbace49e6 Date: Fri, 24 Feb 2023 14:10:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: wielkiegie at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D105329 Gustaw Smolarczyk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wielkiegie at gmail dot com --- Comment #30 from Gustaw Smolarczyk --- I have encountered a similar bug, reproducer: #include std::string foo() { return "_" + std::to_string(0); }=