You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems like UB, though I'm not prepared to cite the relevant part of the Standard now.
Anyway, this leads to destructors of base subobjects to be called twice: first time when you explicitly call ~basic_value() and second time after rethrow, when already constructed base subobject gets destructed.
The text was updated successfully, but these errors were encountered:
Thanks for letting us know about this issue, we looked at all cases and even found a problem not related to the new base class feature. It should all be fixed now.
@p-kalugin That was a really good catch, thank you! Could you review the fix, please? I think we covered all cases correctly now, but an additional pair of eyes won't hurt. :)
In several
basic_value<>
constructors the destructor is called on not-yet constructed object:This seems like UB, though I'm not prepared to cite the relevant part of the Standard now.
Anyway, this leads to destructors of base subobjects to be called twice: first time when you explicitly call
~basic_value()
and second time after rethrow, when already constructed base subobject gets destructed.The text was updated successfully, but these errors were encountered: