[gcc r16-1540] c++: correct __is_trivially_destructible nargs [PR120678]
Jason Merrill
jason@gcc.gnu.org
Tue Jun 17 12:09:42 GMT 2025
https://gcc.gnu.org/g:ac62ff8ed0531ae5ffac4e5bf1dad2d60957b5a9
commit r16-1540-gac62ff8ed0531ae5ffac4e5bf1dad2d60957b5a9
Author: Jason Merrill <jason@redhat.com>
Date: Tue Jun 17 02:41:38 2025 -0400
c++: correct __is_trivially_destructible nargs [PR120678]
I missed adjusting the number of args when copying the
IS_TRIVIALLY_CONSTRUCTIBLE line to create IS_TRIVIALLY_DESTRUCTIBLE.
PR c++/120678
gcc/cp/ChangeLog:
* cp-trait.def (IS_TRIVIALLY_DESTRUCTIBLE): Fix nargs.
Diff:
---
gcc/cp/cp-trait.def | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/cp/cp-trait.def b/gcc/cp/cp-trait.def
index 9c7380d7398e..2e3b4ca2892d 100644
--- a/gcc/cp/cp-trait.def
+++ b/gcc/cp/cp-trait.def
@@ -100,7 +100,7 @@ DEFTRAIT_EXPR (IS_TRIVIAL, "__is_trivial", 1)
DEFTRAIT_EXPR (IS_TRIVIALLY_ASSIGNABLE, "__is_trivially_assignable", 2)
DEFTRAIT_EXPR (IS_TRIVIALLY_CONSTRUCTIBLE, "__is_trivially_constructible", -1)
DEFTRAIT_EXPR (IS_TRIVIALLY_COPYABLE, "__is_trivially_copyable", 1)
-DEFTRAIT_EXPR (IS_TRIVIALLY_DESTRUCTIBLE, "__is_trivially_destructible", -1)
+DEFTRAIT_EXPR (IS_TRIVIALLY_DESTRUCTIBLE, "__is_trivially_destructible", 1)
DEFTRAIT_EXPR (IS_UNBOUNDED_ARRAY, "__is_unbounded_array", 1)
DEFTRAIT_EXPR (IS_UNION, "__is_union", 1)
DEFTRAIT_EXPR (IS_VIRTUAL_BASE_OF, "__builtin_is_virtual_base_of", 2)
More information about the Gcc-cvs
mailing list