aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-09-09 00:34:21 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2025-09-09 00:36:16 +0100
commitf65747d0d966bdee2cbe6053cf2347bedba8cf0d (patch)
tree12af5b0b8092146fe5f65d07ebf53df1f1160099
parent8cad8f94b450be9b73d07bdeef7fa1778d3f2b96 (diff)
downloadgcc-f65747d0d966bdee2cbe6053cf2347bedba8cf0d.zip
gcc-f65747d0d966bdee2cbe6053cf2347bedba8cf0d.tar.gz
gcc-f65747d0d966bdee2cbe6053cf2347bedba8cf0d.tar.bz2
libstdc++: Rename template parameter of std::constant_wrapper
This fixes: FAIL: 17_intro/badnames.cc -std=gnu++26 (test for excess errors) libstdc++-v3/ChangeLog: * include/std/type_traits (constant_wrapper): Rename template parameter to avoid BADNAME.
-rw-r--r--libstdc++-v3/include/std/type_traits6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits
index 26cbbb4..42a1e7f 100644
--- a/libstdc++-v3/include/std/type_traits
+++ b/libstdc++-v3/include/std/type_traits
@@ -4648,12 +4648,12 @@ template<typename _Ret, typename _Fn, typename... _Args>
}
};
- template<_CwFixedValue _X, typename>
+ template<_CwFixedValue _Xv, typename>
struct constant_wrapper : _CwOperators
{
- static constexpr const auto& value = _X._M_data;
+ static constexpr const auto& value = _Xv._M_data;
using type = constant_wrapper;
- using value_type = typename decltype(_X)::_S_type;
+ using value_type = typename decltype(_Xv)::_S_type;
template<_ConstExprParam _Right>
constexpr auto