Bug 13404 – heap-allocating a struct passes TypeInfo_Pointer to the GC, not TypeInfo_struct
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-30T14:38:32Z
Last change time
2018-01-14T22:19:41Z
Keywords
pull
Assigned to
No Owner
Creator
Rainer Schuetze
Comments
Comment #0 by r.sagitario — 2014-08-30T14:38:32Z
When allocating a struct instance with "new", the compiler generates a call to _d_newitemT/_d_newitemiT, with the type info of the pointer to the struct as an argument.
This type info is passed as is to the GC as a description, but should pass ti.next.