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