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.106] Allocating an array of type void[] is marked as not containing pointers #22517
TypeInfo_v (typeid(void)) is marked as "contains pointers", for this reason. I'm unsure whether the correct fix is to add a special case for void in the array alloc function, or change hasIndirections implementation for void. Since void variable/field cannot be declared except as an array type, would fixing hasIndirections!void to true make things cleaner everywhere? This mistake was made here, it could be made elsewhere.
Yeah I think it would probably make sense to make hasIndirections!void true, with a fat note in its documentation. hasIndirections!(void[1]) is already true, and that's probably the only case where a (non-empty) static-array differs wrt. hasIndirections from its element type.
Activity
schveiguy commentedon Feb 5, 2026
Further thoughts:
TypeInfo_v(typeid(void)) is marked as "contains pointers", for this reason. I'm unsure whether the correct fix is to add a special case forvoidin the array alloc function, or changehasIndirectionsimplementation forvoid. Sincevoidvariable/field cannot be declared except as an array type, would fixinghasIndirections!voidtotruemake things cleaner everywhere? This mistake was made here, it could be made elsewhere.kinke commentedon Feb 5, 2026
Yeah I think it would probably make sense to make
hasIndirections!voidtrue, with a fat note in its documentation.hasIndirections!(void[1])is alreadytrue, and that's probably the only case where a (non-empty) static-array differs wrt.hasIndirectionsfrom its element type.Fix issue dlang#22517. typeid(void) claims that the type has pointers…
Fix issue #22517. typeid(void) claims that the type has pointers, so (#…
schveiguy commentedon Feb 23, 2026
Not sure why this didn't auto close...
kinke commentedon Feb 23, 2026
AFAIK, the issues are only closed automatically once the fix is in master, so requiring a back-merge from stable to master.
Edit: Oh, the PR targeted master. Maybe the 'fix issue …' isn't understood, needing 'fix …'?
Edit2: Seems so: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
Fix issue dlang#22517. typeid(void) claims that the type has pointers…