Bug 14723 – Typeinfo sent to GC does not retain storage class information

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-23T15:09:27Z
Last change time
2024-12-07T13:35:24Z
Assigned to
No Owner
Creator
rsw0x
Moved to GitHub: dmd#17303 →

Comments

Comment #0 by rsw0x — 2015-06-23T15:09:27Z
Exactly as the title says. It seems all typeinfo sent is just part of the TypeInfo_Pointer or TypeInfo_Class class and never allocated as TypeInfo_Shared TypeInfo_Invariant TypeInfo_Const etc. This makes it impossible to obtain information about the storage class of the requested allocation.
Comment #1 by dlang-bugzilla — 2017-07-02T22:51:45Z
This looks like a very simple fix. In Druntime, in rt.lifetime, in _d_newitemU, change: auto blkInf = GC.qalloc(size, flags, ti); to: auto blkInf = GC.qalloc(size, flags, _ti); If you still would like this changed, please submit a PR.
Comment #2 by robert.schadek — 2024-12-07T13:35:24Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17303 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB