RTEMS/GCC C++ delete structure that contains a class
joel.sherrill at oarcorp.com
Thu Sep 20 20:09:06 UTC 2007
Brett Swimley wrote:
> 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.
Good!! Especially because RTEMS really has nothing to do with
that. It would have been a gcc issue and broken everywhere. :-D
> 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.
> rtems-users mailing list
> rtems-users at rtems.com
More information about the users