gcc - GNU Compiler Collection (original) (raw)

author Jason Merrill jason@redhat.com 2025-06-17 02:41:38 -0400
committer Jason Merrill jason@redhat.com 2025-06-17 08:05:17 -0400
commit ac62ff8ed0531ae5ffac4e5bf1dad2d60957b5a9 (patch)
tree e7b043e2f1cc1edec285254ae007d3d0777c9c4b
parent c++: modules and #pragma diagnostic (diff)

c++: correct __is_trivially_destructible nargs [PR120678]HEADtrunkmaster

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.

-rw-r--r-- gcc/cp/cp-trait.def 2

1 files changed, 1 insertions, 1 deletions

diff --git a/gcc/cp/cp-trait.def b/gcc/cp/cp-trait.defindex 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)
100 DEFTRAIT_EXPR (IS_TRIVIALLY_ASSIGNABLE, "__is_trivially_assignable", 2) 100 DEFTRAIT_EXPR (IS_TRIVIALLY_ASSIGNABLE, "__is_trivially_assignable", 2)
101 DEFTRAIT_EXPR (IS_TRIVIALLY_CONSTRUCTIBLE, "__is_trivially_constructible", -1) 101 DEFTRAIT_EXPR (IS_TRIVIALLY_CONSTRUCTIBLE, "__is_trivially_constructible", -1)
102 DEFTRAIT_EXPR (IS_TRIVIALLY_COPYABLE, "__is_trivially_copyable", 1) 102 DEFTRAIT_EXPR (IS_TRIVIALLY_COPYABLE, "__is_trivially_copyable", 1)
103 DEFTRAIT_EXPR (IS_TRIVIALLY_DESTRUCTIBLE, "__is_trivially_destructible", -1) 103 DEFTRAIT_EXPR (IS_TRIVIALLY_DESTRUCTIBLE, "__is_trivially_destructible", 1)
104 DEFTRAIT_EXPR (IS_UNBOUNDED_ARRAY, "__is_unbounded_array", 1) 104 DEFTRAIT_EXPR (IS_UNBOUNDED_ARRAY, "__is_unbounded_array", 1)
105 DEFTRAIT_EXPR (IS_UNION, "__is_union", 1) 105 DEFTRAIT_EXPR (IS_UNION, "__is_union", 1)
106 DEFTRAIT_EXPR (IS_VIRTUAL_BASE_OF, "__builtin_is_virtual_base_of", 2) 106 DEFTRAIT_EXPR (IS_VIRTUAL_BASE_OF, "__builtin_is_virtual_base_of", 2)