From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57FCD3858C27; Thu, 21 Sep 2023 10:33:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57FCD3858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695292421; bh=prtsR1SSGYi1WDM2U6u9JFt/ZPsVkiu1eVGGEqMpGtc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sEumNmYUqQNqCFyCvG0YaPgp4p1KvnxT/Z+g9+f248CnXpopZtjqs5hB846ZPwFlm 2/+3hU7a7LwycyBRUPa8Nz2/dp/VdjrvvoHu6HBVlBELoyycybOG4/cpYkzJAI5MgN oAEprPG+ttcYgyoGCKMaahho0/FZIqM7vsjYUMCs= From: "m.cencora at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/111511] Incorrect ADL in std::to_array in GCC 11/12/13 Date: Thu, 21 Sep 2023 10:33:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: m.cencora at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D111511 m.cencora at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.cencora at gmail dot com --- Comment #2 from m.cencora at gmail dot com --- (In reply to Jonathan Wakely from comment #1) > (In reply to Jiang An from comment #0) > > Not sure whether this should be WONTFIX since the implementation is > > fundamentally changed in GCC 14 (PR 110167). >=20 > There's no reason we can't fix the old version in the release branches. >=20 > I did notice this when rewriting it, but I didn't think to change the > branches to avoid ADL there, because I plan to backport the new > implementation eventually anyway. On a semi-related topic: Can't we use __builtin_bit_cast as even simpler implementation of to_array = for trivial types?=