r192300 - Use aliases for more constructors and destructors.

Eric Christopher echristo at gmail.com
Wed Oct 9 17:14:16 PDT 2013


On Wed, Oct 9, 2013 at 2:14 PM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
> The problem seems to be that clang produces
>
> _ZN7DerivedD1Ev = _ZN7DerivedD2Ev
> _ZN7DerivedD2Ev = _ZN4BaseD2Ev
>
> While gcc is less aggressive:
>
> .set _ZN7DerivedD1Ev,_ZN7DerivedD2Ev
>
> Should we disable the "derived destructor == base destructor"
> optimization at -O0?
>

We definitely shouldn't disable it at a particular optimization level
just to make debugging easier. The testcase isn't very clear why it
expects that we should be able to go up from the derived destructor to
the base destructor here.

-eric




More information about the cfe-commits mailing list