Re: [PATCH 09/14] c++: Implement __is_unsigned built-in trait

2024-01-16 Thread Jason Merrill
On 1/10/24 04:23, Ken Matsui wrote: This patch implements built-in trait for std::is_unsigned. +case CPTK_IS_UNSIGNED: + return TYPE_UNSIGNED (type1); This seems to lack the checks for arithmetic type that the __is_signed patch has. Jason

[PATCH 09/14] c++: Implement __is_unsigned built-in trait

2024-01-10 Thread Ken Matsui
This patch implements built-in trait for std::is_unsigned. gcc/cp/ChangeLog: * cp-trait.def: Define __is_unsigned. * constraint.cc (diagnose_trait_expr): Handle CPTK_IS_UNSIGNED. * semantics.cc (trait_expr_value): Likewise. (finish_trait_expr): Likewise.