aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-03-10 10:50:40 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-03-10 10:52:25 +0000
commitc222eabcf8be0e3f644e4bd4c3316b40dba4b514 (patch)
tree84631fb738cd3aaee24641f2f40cb806ba2c2995 /libstdc++-v3/include
parent3654d49d0ff651b2a78401bc2430428711e7d2eb (diff)
downloadgcc-c222eabcf8be0e3f644e4bd4c3316b40dba4b514.zip
gcc-c222eabcf8be0e3f644e4bd4c3316b40dba4b514.tar.gz
gcc-c222eabcf8be0e3f644e4bd4c3316b40dba4b514.tar.bz2
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.
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/std/ranges2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index eb54b11..292132d 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -1837,7 +1837,7 @@ namespace views
{ return __x._M_current - __y._M_current; }
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); }
friend constexpr void