Destructor called while object is still alive

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Oct 24 07:23:33 UTC 2020


On Saturday, 24 October 2020 at 06:50:13 UTC, Ola Fosheim Grøstad 
wrote:
> Maybe you only need to do it in functions that are marked as 
> not returning normally (bottom).

That would require that functions are marked as "sometimes does 
not return normally"...

I guess another option is to go over the ssa after optimization 
and do a rerun with spilled pointers to the stack... Spilling all 
potential gc pointers returned from functions to the stack is 
exessive. It would include void pointers etc.




More information about the Digitalmars-d mailing list