From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A119385841E; Fri, 9 Feb 2024 14:03:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A119385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707487423; bh=EnXaSmbH8ebIkOVyxu2S8glQVneRu6ymtizplrYQwBc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BupRzgv7Lu9C7+OxpOSvwxy/myph2cTKX5wVXa2L9DgRx/Ljwhc5IfbDhq44RMBIi O1q9lpbcKaS81Vxli05fDwWhtmF+5gJqoyWi9tPQbG2XauvdA0VGXP7xIndbBnh+3A gQz2JDZW8wEs6QvXcaS2a4IQaI3sXaUd+sRb9kLI= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113841] Can't swap two std::hash Date: Fri, 09 Feb 2024 14:03:43 +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: 12.1.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 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=3D113841 --- Comment #6 from Jonathan Wakely --- IIRC the reason we don't just default that constructor is because we need t= o be sure to value-initialize the allocator, not just default-initialize it.=