[Bug libstdc++/92059] Crash on tr2::dynamic_bitset::operator=() with optimization

2019-10-13 Thread jharris at simplexinvestments dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92059 --- Comment #11 from John Harris --- Great. Thanks for the quick and thorough response.

[Bug libstdc++/92059] Crash on tr2::dynamic_bitset::operator=() with optimization

2019-10-11 Thread jharris at simplexinvestments dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92059 --- Comment #6 from John Harris --- Thanks, JW. While you're in there, the base class needs a copy constructor, as its absence prevents use of the derived class copy constructor (won't compile).

[Bug middle-end/92059] Crash on tr2::dynamic_bitset::operator=() with optimization

2019-10-10 Thread jharris at simplexinvestments dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92059 --- Comment #2 from John Harris --- I figured this out. The assignment operator doesn't have a return statement. Why that matters, I don't know. But adding return *this fixes it.

[Bug c++/92059] New: Crash on tr2::dynamic_bitset::operator=() with optimization

2019-10-10 Thread jharris at simplexinvestments dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jharris at simplexinvestments dot com Target Milestone: --- Created attachment 47017 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47017&action=edit Self-contained preprocesor