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.
}
};
- 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