libstdc++-v3/ChangeLog:
* include/std/ranges (iota_view::_M_bound): Give it
[[no_unique_address]].
* testsuite/std/ranges/iota/iota_view.cc: Check that an
unbounded iota_view has minimal size.
};
_Winc _M_value = _Winc();
- _Bound _M_bound = _Bound();
+ [[no_unique_address]] _Bound _M_bound = _Bound();
public:
iota_view() = default;
VERIFY( it == v.end() );
}
+// Verify we optimize away the 'bound' data member of an unbounded iota_view.
+static_assert(sizeof(std::ranges::iota_view<char>) == 1);
+
int
main()
{