[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RTEMS/GCC C++ delete structure that contains a class
- Date: Thu, 20 Sep 2007 14:05:06 -0600
- From: brett.swimley at aedbozeman.com (Brett Swimley)
- Subject: RTEMS/GCC C++ delete structure that contains a class
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.
>
>>