libstdc++: Remove workarounds for constraints on alias templates
authorJonathan Wakely <jwakely@redhat.com>
Wed, 5 Feb 2020 10:35:19 +0000 (10:35 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 5 Feb 2020 15:09:23 +0000 (15:09 +0000)
commit269e8130b77065452698ab97e5da77d132d00276
tree54a4dab63bf4ed6c79b17fc5828c220fbbe0d757
parenta4d3bfc0851ac1b489c4dea5b57dcc08adb20457
libstdc++: Remove workarounds for constraints on alias templates

The G++ bug has been fixed for a couple of months so we can remove these
workarounds that define alias templates in terms of constrained class
templates. We can just apply constraints directly to alias templates as
specified in the C++20 working draft.

* include/bits/iterator_concepts.h (iter_reference_t)
(iter_rvalue_reference_t, iter_common_reference_t, indirect_result_t):
Remove workarounds for PR c++/67704.
* testsuite/24_iterators/aliases.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/iterator_concepts.h
libstdc++-v3/testsuite/24_iterators/aliases.cc [new file with mode: 0644]