libstdc++: Reduce the size of a subrange with empty sentinel type
authorPatrick Palka <ppalka@redhat.com>
Mon, 28 Sep 2020 15:55:04 +0000 (11:55 -0400)
committerPatrick Palka <ppalka@redhat.com>
Mon, 28 Sep 2020 15:55:04 +0000 (11:55 -0400)
commit620db4ca608987ed3e386fad2fd80fa3886e8154
tree3fae948a6c4b248dc46969b1b327a99c8ceaa996
parent623443357e6092067b4cf98cc6c0aeff7560b98d
libstdc++: Reduce the size of a subrange with empty sentinel type

libstdc++-v3/ChangeLog:

* include/bits/ranges_util.h (subrange::_M_end): Give it
[[no_unique_address]].
* testsuite/std/ranges/subrange/sizeof.cc: New test.
libstdc++-v3/include/bits/ranges_util.h
libstdc++-v3/testsuite/std/ranges/subrange/sizeof.cc [new file with mode: 0644]