From 72fadb13da7607aa0e28b5f635917a84463d79ca Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 9 Jan 2026 14:02:49 -0500 Subject: [PATCH] Remove a few strip_typedefs In general this shouldn't be necessary with finish_library_value_trait, coerce_template_parms will canonicalize template args. --- gcc/cp/reflect.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gcc/cp/reflect.cc b/gcc/cp/reflect.cc index 5af9e8a1ac4..a7b7d88e2cb 100644 --- a/gcc/cp/reflect.cc +++ b/gcc/cp/reflect.cc @@ -5416,8 +5416,6 @@ eval_tuple_size (location_t loc, const constexpr_ctx *ctx, tree type, tree call, bool *non_constant_p, tree *jump_target, tree fun) { - type = strip_typedefs (type); - /* Create std::tuple_size::value. */ tree args = make_tree_vec (1); TREE_VEC_ELT (args, 0) = type; @@ -5435,7 +5433,6 @@ eval_tuple_element (location_t loc, const constexpr_ctx *ctx, tree i, tree type, tree call, bool *non_constant_p, tree *jump_target, tree fun) { - type = strip_typedefs (type); /* Create std::tuple_element::type. */ tree args = make_tree_vec (2); TREE_VEC_ELT (args, 0) = i; @@ -5454,8 +5451,6 @@ eval_variant_size (location_t loc, const constexpr_ctx *ctx, tree type, tree call, bool *non_constant_p, tree *jump_target, tree fun) { - type = strip_typedefs (type); - /* Create std::variant_size::value. */ tree args = make_tree_vec (1); TREE_VEC_ELT (args, 0) = type; @@ -5473,7 +5468,6 @@ eval_variant_alternative (location_t loc, const constexpr_ctx *ctx, tree i, tree type, tree call, bool *non_constant_p, tree *jump_target, tree fun) { - type = strip_typedefs (type); /* Create std::variant_alternative::type. */ tree args = make_tree_vec (2); TREE_VEC_ELT (args, 0) = i;