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
Attached is a slimmed down case from a production code, where the presence of an 'if' statement in a function that passes through an exception will not have the destructors of its temporary variables called.
Note that this only happens when compiling with -O2. Any other optimization level, including -O3 will give the correct result.
Extended Description
Attached is a slimmed down case from a production code, where the presence of an 'if' statement in a function that passes through an exception will not have the destructors of its temporary variables called.
Note that this only happens when compiling with -O2. Any other optimization level, including -O3 will give the correct result.
To reproduce:
Expected output:
AutoDestroy
~AutoDestroy
Exception: No pointer
Actual output:
AutoDestroy
Exception: No pointer
The text was updated successfully, but these errors were encountered: