From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B2EF3858D35; Fri, 5 Apr 2024 23:31:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B2EF3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712359909; bh=jIqDKhPgo+NIZCRdFglSULCKyCJt41OjlOVf/XDmucA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VeHXJIX2+usMQVxi+nk+HBY4Uyh0NHlZgu3rcoUWD6eTdEZk883wMYFhFWpHHRRRY ZTDw4FOMBvjvT0TirLQfbcCw+ZnntrUWE2gV3BGXu/NtIGj77DrNsiboTkKzF7n8G+ C7uU8XTr+RVoJ6mNFRansu0PSHtocESNT9Me6k4s= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/90085] c++17 template argument deduction results in missed optimization Date: Fri, 05 Apr 2024 23:31:47 +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: 8.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_known_to_fail 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=3D90085 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |13.1.0 Known to fail| |12.3.0 --- Comment #2 from Andrew Pinski --- Looks to be fixed in GCC 13. easiest way to see the difference is: .section=20=20=20=20=20=20=20 .data._ZN6Colors5namesE,"awG",@progbits,_ZN6Colors5namesE,comdat vs .section=20=20=20=20=20=20=20 .rodata._ZN6Colors5namesE,"aG",@progbits,_ZN6Colors5namesE,comdat at -O0.=