From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30E67386F423; Wed, 19 Aug 2020 11:25:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30E67386F423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597836316; bh=IHsuQrFVZvoKjPDnHSeKZretPAXQXRMRV6aIlT9Mh+s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n0Q5xBi0MkCeMAX3NJJokaDU0s0wFh5dKV8WoepZKmp6R5opt1b9p/F1Rh8MkgLDL 545S/p+FolFUcXXxsD2BYoleQBursKSKH2yuZsdSNhiVOdYEFrAghBfhkK6Z291LML T67efNs0jHeWI4PQ44qbpHgOVKbxqoZMidOfioIA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/71579] type_traits miss checks for type completeness in some traits Date: Wed, 19 Aug 2020 11:25:15 +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: 6.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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 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: Wed, 19 Aug 2020 11:25:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71579 --- Comment #18 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:69f571ffc513b689fa26e4c9fceba17c2c989ab3 commit r11-2759-g69f571ffc513b689fa26e4c9fceba17c2c989ab3 Author: Antony Polukhin Date: Wed Aug 19 12:10:57 2020 +0100 libstdc++: assert that type traits are not misused with incomplete types [PR 71579] libstdc++-v3/ChangeLog: 2020-08-19 Antony Polukhin PR libstdc++/71579 * include/std/type_traits (invoke_result, is_nothrow_invocable_= r) Add static_asserts to make sure that the argument of the type trait is not misused with incomplete types. (is_swappable_with, is_nothrow_swappable_with): Add static_asse= rts to make sure that the first and second arguments of the type tr= ait are not misused with incomplete types. * testsuite/20_util/invoke_result/incomplete_neg.cc: New test. * testsuite/20_util/is_nothrow_invocable/incomplete_neg.cc: New test. * testsuite/20_util/is_nothrow_swappable/incomplete_neg.cc: New test. * testsuite/20_util/is_nothrow_swappable_with/incomplete_neg.cc: New test. * testsuite/20_util/is_swappable_with/incomplete_neg.cc: New te= st.=