From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F6E03860002; Wed, 27 Mar 2024 12:59:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F6E03860002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711544393; bh=t/3Pfj7BXjMj+MGKWAKIvr3kPX3VtDEjwmbZ0XEdqT4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AMk9Mj9hojriD3plcdCkpS499VOgy/2QC2lkLKM1tlKvYswppxJTBtgaGlGtDPWKa gZHFi3JBso6fCDCuBHy92qgi6S0QEXTY7lKaWsSiFyalvutwIU6EcOY+yms8/B4766 gi4XJUXP4U2v6zZE4D4n0NUdM0eLm9GwtDo7Cdy8= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100667] [11/12/13/14 Regression] std::tuple cannot be constructed from A&&, if A not defined (only forward declared) Date: Wed, 27 Mar 2024 12:59:52 +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: 11.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: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D100667 --- Comment #6 from Jonathan Wakely --- (In reply to Piotr Nycz from comment #0) > It looks that std library code start requiring this to pass: > std::is_nothrow_constructible... Indeed, that's what the standard requires (Clang and MSVC reject this the s= ame way). The standard also says that using traits like is_constructible requir= es complete types. However, that's clearly silly for is_constructible because we know = that reference binding is valid for any A whether it's complete or not. This is the subject of: https://cplusplus.github.io/LWG/issue2939=