++
Assignee: unassigned at gcc dot gnu.org
Reporter: njormrod at fb dot com
Target Milestone: ---
Throwing invokes the move constructor instead of the copy constructor.
Demonstration of move-constructor in godbolt: https://gcc.godbolt.org/z/zhjv5z
Demonstration of copy-constructor using clang
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: njormrod at fb dot com
Target Milestone: ---
Universal forwarding constructors have a known oddity: they are a better match
than the copy constructor for non-const objects.
If a derived
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93205
--- Comment #1 from Nicholas Ormrod ---
(This bug was discovered when some empty-istream test code OOMed)
riority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: njormrod at fb dot com
Target Milestone: ---
std::discrete_distribution's operator>> should work with an invalid stream
(29.6.1.6, Table 105, row 15). Instead, it may OOM.
Relevant co