From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B0DB3858401; Thu, 25 Jan 2024 09:38:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B0DB3858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706175504; bh=ASI/NkBSbKvNnltLlxWJ4zNKww6uFytrXcl7RYOPh4E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hPv22objTOYfNibWKIMlb1G36bkqGOYuhbZmSBCqigH75V+0KV0IXQoNK2312lZp8 h768dklKQSXETCZ79zDlooNDpYXG6oaWJgc+s3FUNhS0HIG6G9AUMmeGrkF/0J7U15 8uWZa+ihc6OEco/M8vysXXlSo/+OfgVH2/VWL1RY= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113522] std::swap cannot be called with explicit template argument std::array Date: Thu, 25 Jan 2024 09:38:22 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 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=3D113522 --- Comment #5 from Jonathan Wakely --- (In reply to Jiang An from comment #4) > Hmm... currently it's specified in [algorithms.requirements] that > > The well-formedness and behavior of a call to an algorithm with an expl= icitly-specified template argument list is unspecified, except where explic= itly stated otherwise. >=20 > (Added by P0896R4 and amended by LWG3419.) >=20 > Should open an LWG issue to specify similar things for std::swap? Yes please. I thought we already had it, but when I went looking I only fou= nd that text in [algorithm.requirements].=