On 10/25/2013 01:53 PM, Eric Botcazou wrote:
This has introduced a problem for the -fdump-ada-spec machinery, which boils down to the TYPE_METHODS field of the following structure:struct _outer { struct _inner { int x; } inner; } outer; Previously it was empty, now it contains the following destructor: [snip] Is that expected and, consequently, should we adjust the machinery?
In C++ all classes have destructors, but we try to defer building the implicit declaration. My patch causes us to build those implicit declarations more often, which is probably a bit of a memory regression, but it would be good for your code to handle the dtor being declared.
Jason
