[Bug c++/85517] New: std::variant exception safety problems

2018-04-24 Thread zhangxy at google dot com
++ 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

[Bug c++/84866] New: Incorrectly instantiating move ctor when a union's move constructor is implicitly deleted

2018-03-14 Thread zhangxy at google dot com
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

[Bug c++/83689] New: Internal compiler error using is_trivially_default_constructible on array of nontrivially-destructible types

2018-01-04 Thread zhangxy at google dot com
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

[Bug libstdc++/82262] New: std::hash>::operator() missing remove_const_t

2017-09-19 Thread zhangxy at google dot com
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