[Issue 14723] Typeinfo sent to GC does not retain storage class information

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 2 15:51:45 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=14723

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang-bugzilla at thecybershad
                   |                            |ow.net
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
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.

--


More information about the Digitalmars-d-bugs mailing list