From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B82333858C36; Wed, 27 Mar 2024 14:14:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B82333858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711548878; bh=L8j/xwIp2GmlZdJOMuqpTztT+4WBISbcAE1crhnXGaM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YUbcfOBiSe3O/cFCiDVI50cE1rnBBR0fmlr+P8i6PiegpKNMsqEH5sQhqFU5E81cx zVEqLqh97z2jRzoqgDilqErJgsLisUJW0fJ31tfhVX2kXz8YnqxBsZLhgQ/KNtyeg/ u7bDH9HNUf9Ua1OmZh98fVXO86Mo5OnDb3rrXILE= 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 14:14:38 +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 #10 from Jonathan Wakely --- Oh interestingly __is_constructible(Incomplete&&, Incomplete) is already allowed, but __is_nothrow_constructible and __is_convertible give errors: __is_nothrow_constructible(Incomplete&&, Incomplete) : In function =E2=80=98int main()=E2=80=99: :117:68: error: invalid use of incomplete type =E2=80=98struct Incom= plete=E2=80=99 [-fpermissive] :110:8: note: forward declaration of =E2=80=98struct Incomplete=E2= =80=99 __is_convertible(Incomplete, Incomplete&&) : In function =E2=80=98int main()=E2=80=99: :117:58: error: invalid use of incomplete type =E2=80=98struct Incom= plete=E2=80=99 [-fpermissive] :110:8: note: forward declaration of =E2=80=98struct Incomplete=E2= =80=99=