diff options
author | Ken Matsui <kmatsui@gcc.gnu.org> | 2023-12-06 21:33:11 -0800 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-12-10 13:11:23 -0500 |
commit | 5bca9af579a06bbf7160613f948ecf2092299437 (patch) | |
tree | d7ba523551e6af7a45b724b21655e6fa0861906e /libquadmath/Makefile.am | |
parent | f4007cb78e428c7a82b85b7c1c4104946b98c933 (diff) | |
download | gcc-5bca9af579a06bbf7160613f948ecf2092299437.zip gcc-5bca9af579a06bbf7160613f948ecf2092299437.tar.gz gcc-5bca9af579a06bbf7160613f948ecf2092299437.tar.bz2 |
c++: Implement __is_reference built-in trait
This patch implements built-in trait for std::is_reference.
gcc/cp/ChangeLog:
* cp-trait.def: Define __is_reference.
* constraint.cc (diagnose_trait_expr): Handle CPTK_IS_REFERENCE.
* semantics.cc (trait_expr_value): Likewise.
(finish_trait_expr): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/ext/has-builtin-1.C: Test existence of __is_reference.
* g++.dg/ext/is_reference.C: New test.
Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
Diffstat (limited to 'libquadmath/Makefile.am')
0 files changed, 0 insertions, 0 deletions