]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: __is_constructible ref binding [PR100667]
authorJason Merrill <jason@redhat.com>
Wed, 27 Mar 2024 20:14:01 +0000 (16:14 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 24 May 2024 15:58:37 +0000 (11:58 -0400)
commitba57a52dbf6a64ba66f72c20064c5c0e8cc9dbbb
tree882ebf36d704d344b6442a0bb4d70bbe231fec54
parent6a5dcdb7ae6bbd9c5a273ceadc7f7c7cd8a6c8ec
c++: __is_constructible ref binding [PR100667]

The requirement that a type argument be complete is excessive in the case of
direct reference binding to the same type, which does not rely on any
properties of the type.  This is LWG 2939.

PR c++/100667

gcc/cp/ChangeLog:

* semantics.cc (same_type_ref_bind_p): New.
(finish_trait_expr): Use it.

gcc/testsuite/ChangeLog:

* g++.dg/ext/is_constructible8.C: New test.

(cherry picked from commit 8bb3ef3f6e335e8794590fb712a2661d11d21973)
gcc/cp/semantics.cc
gcc/testsuite/g++.dg/ext/is_constructible8.C [new file with mode: 0644]