Commit c222eabc by Jonathan Wakely

libstdc++: Fix invalid noexcept-specifier (PR 94117)

G++ fails to diagnose this non-dependent expression, but Clang doesn't
like it.

	PR c++/94117
	* include/std/ranges (ranges::transform_view::_Iterator::iter_move):
	Change expression in noexcept-specifier to match function body.
parent 3654d49d
2020-03-10 Jonathan Wakely <jwakely@redhat.com> 2020-03-10 Jonathan Wakely <jwakely@redhat.com>
PR c++/94117
* include/std/ranges (ranges::transform_view::_Iterator::iter_move):
Change expression in noexcept-specifier to match function body.
* testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Add * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Add
comment explaining multiple dg-do directives. comment explaining multiple dg-do directives.
* testsuite/24_iterators/ostream_iterator/1.cc: Fix do-do directive * testsuite/24_iterators/ostream_iterator/1.cc: Fix do-do directive
......
...@@ -1837,7 +1837,7 @@ namespace views ...@@ -1837,7 +1837,7 @@ namespace views
{ return __x._M_current - __y._M_current; } { return __x._M_current - __y._M_current; }
friend constexpr decltype(auto) friend constexpr decltype(auto)
iter_move(const _Iterator& __i) noexcept(noexcept(__iter_move())) iter_move(const _Iterator& __i) noexcept(noexcept(__iter_move(__i)))
{ return __iter_move(__i); } { return __iter_move(__i); }
friend constexpr void friend constexpr void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment