[Bug libstdc++/90008] [9 Regression] variant attempts to copy rhs in comparison operators
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 8 19:37:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90008
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
--- a/libstdc++-v3/include/std/variant
+++ b/libstdc++-v3/include/std/variant
@@ -1118,7 +1118,7 @@ namespace __variant
{ \
bool __ret = true; \
__do_visit<__detail::__variant::__visit_with_index>( \
- [&__ret, &__lhs, __rhs] \
+ [&__ret, &__lhs] \
(auto&& __rhs_mem, auto __rhs_index) mutable \
-> __detail::__variant::__variant_idx_cookie \
{ \
More information about the Gcc-bugs
mailing list