[cfe-dev] [Bug] Wrong Exception Handling : Destructor not called immediately

suyog sarda sardask01 at gmail.com
Tue Apr 15 07:54:01 PDT 2014


One more doubt i had.

If suppose there is heirarchy of temporary objects like :

*b(b(b(a()))) ;*

and an exception occurs in the destructor of innermost object, should only
the immediate parent object's destructor should be called or cleanup should
occur
for the whole heirarchy of parent objects? If so, should it be true if
there is a function call somewhere in between the heirarchy like :

*b(b(func(b(a))));*

Regards,
Suyog Sarda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140415/9891049c/attachment.html>


More information about the cfe-dev mailing list