[Bug c++/98938] New: throw calls move constructor

2021-02-02 Thread njormrod at fb dot com via Gcc-bugs
++ 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

[Bug c++/95849] New: Universal forwarding constructor inheritance resolution issue

2020-06-23 Thread njormrod at fb dot com
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

[Bug libstdc++/93205] std::discrete_distribution's operator>> causes OOM

2020-01-08 Thread njormrod at fb dot com
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)

[Bug libstdc++/93205] New: std::discrete_distribution's operator>> causes OOM

2020-01-08 Thread njormrod at fb dot com
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