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.
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71786
Marc Glisse changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
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
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.