++
Assignee: unassigned at gcc dot gnu.org
Reporter: zhangxy at google dot com
Target Milestone: ---
There are several issues with the implementation of std::variant related to
exception safety:
1. Copy assignment
According to [variant.assign] 23.7.3.3 (2.4): if either
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zhangxy at google dot com
Target Milestone: ---
The following code triggers internal compiler error (see
https
IRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zhangxy at google dot com
Target Milestone: ---
Please see https://godbolt.org/g/5VTrtz for a reduced test case.
The reasoning is: if is_move_constructor
P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: zhangxy at google dot com
Target Milestone: ---
std::hash> specialization doesn't work with const-qualified
type. I think the problem is that std::remove_const_t is missing.
For e