Remove PR 92268 workaround and fix new test failures
commitb3ffa117e5cc0e0451ab1fb2aafd6ca56258912b
authorJonathan Wakely <jwakely@redhat.com>
Thu, 31 Oct 2019 13:17:48 +0000 (31 13:17 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 31 Oct 2019 13:17:48 +0000 (31 13:17 +0000)
tree290c2c9e5ea352b33b0f217bb8a5022ea4230a62
parentbeaecb2d6b2f3c48740b7b8749ee2d2468c8dc14
Remove PR 92268 workaround and fix new test failures

With the compiler bug fixed we can simplify the __sizable concept to use
a return-type-requirement again. I also realised it was redundantly
re-checking a subset of the sized_sentinel_for requirements.

The compiler fix also revealed bugs in two tests which started to fail
and are fixed by this patch.

* include/bits/range_access.h (__sizable): Rename to __sentinel_size.
Remove workaround for PR c++/92268 and remove redundant requirements
that are already checked by sized_sentinel_for.
* testsuite/std/ranges/access/cend.cc: Fix failures.
* testsuite/std/ranges/access/end.cc: Likewise.

From-SVN: r277667
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/range_access.h
libstdc++-v3/testsuite/std/ranges/access/cend.cc
libstdc++-v3/testsuite/std/ranges/access/end.cc