From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 40DB3394201D; Thu, 12 Mar 2020 16:39:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40DB3394201D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584031140; bh=ijlIiK8FjRnmN5n/RsbVogOHHycX9g99QgxtgX72p48=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AlIO5PooawDZWRxpe83c7iMsH5Z5HJGzuCmH2mRacUO2DCX398GLZXZlLMfN1dhlJ D602rBgBP35udKLObwp4NMKwP+vmi0XWGuyGIC8lix7tAW0G6wVVDElu9v75SQ0cyQ pmfix22P3A+nwjwOHIvaGcVsO8EU+yNECTjZsCNU= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/94033] [10 Regression] is_trivially_copy_constructible<> fails with compiler error on complicated object with private default constructor Date: Thu, 12 Mar 2020 16:38:59 +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: 10.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2020 16:39:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94033 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D94003 --- Comment #12 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #11) > #ifdef FIX > static_assert( !std::is_nothrow_default_constructible::value ); > #endif Or slightly simpler, just instantiate the trait that's giving the wrong ans= wer, which others depend on: #ifdef FIX static_assert( !std::is_constructible::value ); #endif See also PR 94003. Anyway, I have a patch for the library traits to avoid the problem.=