You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[REG master] hasElaborateDestructor fails with private destructor #22609
I'm not sure why that error happened. S has a private __xdtor, but when wrapping S in S2, S2 should still be able to access its own __xdtor. Anyway, due to all the problems I've made a PR to add a compiler trait instead.
Activity
Add `__traits(hasElaborateDestructor, T)`
Add `__traits(hasElaborateDestructor, T)`
Add `__traits(hasElaborateDestructor, T)`
Add `__traits(hasElaborateDestructor, T)`
ntrel commentedon Feb 23, 2026
I'm not sure why that error happened. S has a private __xdtor, but when wrapping S in S2, S2 should still be able to access its own __xdtor. Anyway, due to all the problems I've made a PR to add a compiler trait instead.
Add `__traits(needsDestruction, T)` (dlang#22616)
Add `__traits(needsDestruction, T)` (dlang/dmd!22616)