]> 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>
Wed, 1 May 2024 09:19:19 +0000 (05:19 -0400)
commit19821ce86afa0f4ce0d2312b16864c809e605be9
tree4a1b4c083eb238c61fd56a262a931a6c6713c272
parent72001c4cfb066ad3ceecb53ba0cd3a7cb7d0b936
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]