[Bug c++/71786] Constructor never called

2016-07-07 Thread guille at cal dot berkeley.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71786 --- Comment #5 from Guille --- Sorry for the confusion, I'll post as a separate report for clarity.

[Bug c++/71786] Constructor never called

2016-07-07 Thread guille at cal dot berkeley.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71786 --- Comment #4 from Guille --- Hi Marc, Thank you for your clarification. I realized my initial problem arose in a slightly more complicated case (below). In this case a copy/move ctor of A is used, but this default-generated ctor does not

[Bug c++/71786] Constructor never called

2016-07-07 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71786 Marc Glisse changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/71786] Constructor never called

2016-07-06 Thread guille at cal dot berkeley.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71786 --- Comment #2 from Guille --- I added some printing-code to it. This is what I get: A() -> INSERT: 0x7fff5c44cb2f ~A() -> ERASE: 0x7fff5c44cb2f ~A() -> ERASE: 0x7fff5c44cb40 Assertion failed: (!all.empty()), function ~A, file gcc_bug.c, line

[Bug c++/71786] Constructor never called

2016-07-06 Thread guille at cal dot berkeley.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71786 --- Comment #1 from Guille --- I should note, the destructor *is* called, but not the constructor.