https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3187
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |4.9.0 --- Comment #43 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #41) > what we could do (perhaps as an option) is > to emit another function, which would take an argument what kind of ctor > resp. dtor it is, and > behave differently depending on that argument, then have both kinds of ctor > resp. dtor to tail call (or if not possible, just call) the other function. > I guess it could have ABI consequences though (in which comdat section to > place it). This was implemented for bug 41090; -fdeclone-ctor-dtor defaults to on with -Os, off otherwise. So, fixed in 4.9.