From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3329D3882AEB; Tue, 18 Jun 2024 12:14:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3329D3882AEB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718712868; bh=ShOiRGe6A19RTTxtcMFGf5AqRtwuoYtEveTnKjMmO1Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MQIuY2iv+8rJY2lruBKsHygx2sCny6cVMtaTnt/zN6UE86av8BHdeL/itoHVg3LXt yHLkpJpJYCVuAVT059d/Q8C3XFKxlqzm5GpnGBCy3VG12eCs8i2FifCIPgcpPlpLXU 86XSaK6XfvGPnobT0bZSnFD1JDzXfaDrV5JUWAnU= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/115522] [13/14/15 Regression] std::to_array no longer works for struct which is trivial but not default constructible Date: Tue, 18 Jun 2024 12:14:27 +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.3.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: 13.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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=3D115522 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D85723 --- Comment #5 from Jonathan Wakely --- Ah, it looks like is_trivial is just wrong for types with a deleted default constructor, that's PR 85723 The std::to_array code _should_ work correctly for this case :-\=