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 2.103] Class objects without explicit pointers are scanned by the GC #22599
Almost certainly caused by the _d_newclassT template; LDC isn't affected (still using _d_newclass based on TypeInfo). As _d_newclassT still uses the TypeInfo, it should IMO clearly have an assert verifying that the manual has-pointers logic yields the same result as the TypeInfo.
hasIndirections!T for some class T is always true, as a class ref is clearly a pointer. What needs to be done is checking if any explicit field in the class (incl. base classes) has indirections.
Activity
kinke commentedon Feb 20, 2026
Yeah this is clearly wrong:
dmd/druntime/src/core/lifetime.d
Lines 2762 to 2763 in 86797d8
hasIndirections!Tfor some classTis always true, as a class ref is clearly a pointer. What needs to be done is checking if any explicit field in the class (incl. base classes) has indirections.Fix dlang#22599 - Class objects without explicit pointers are scanned…
Fix dlang#22599 - Class objects without explicit pointers are scanned…