From: Jason Merrill Date: Tue, 17 Jun 2025 06:41:38 +0000 (-0400) Subject: c++: correct __is_trivially_destructible nargs [PR120678] X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac62ff8ed0531ae5ffac4e5bf1dad2d60957b5a9;p=thirdparty%2Fgcc.git 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 --git a/gcc/cp/cp-trait.def b/gcc/cp/cp-trait.def index 9c7380d7398..2e3b4ca2892 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)