]> 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>
Thu, 28 Mar 2024 18:18:35 +0000 (14:18 -0400)
commit8bb3ef3f6e335e8794590fb712a2661d11d21973
tree3f3000dc92bab11aa33582e564f45536f4e669ae
parentbbb7c513dddc5c9b2d5e9b78bc1c2f85a0cfe07e
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.
gcc/cp/semantics.cc
gcc/testsuite/g++.dg/ext/is_constructible8.C [new file with mode: 0644]