RTEMS/GCC C++ delete structure that contains a class

Brett Swimley brett.swimley at aedbozeman.com
Thu Sep 20 20:05:06 UTC 2007


Chris,

Thanks for the reply.

Upon further investigation, I determined that the class destructor was 
being called.  By placing appropriate print instructions inside of the 
destructor, rather than relaying on stepping through the code with a 
debugger, I determined that the behavior was as expected.

Brett

Chris Johns wrote:
>
> Yes I think it should if the destructor does need to do something. 
> What actually ends up in the code depends on what happens around the 
> code and its use. You have asked the code to be inlined.
>
> It is difficult to determine if anything is actually broken without 
> the tools version and target. I built an example of the code on Fedora 
> 7 without optimisation options and inspecting the code showed it had 
> the correct calls.
>
>>



More information about the users mailing list