[Issue 11538] [ICE] stack overflow with recursive NullableRef fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 11 21:39:13 UTC 2018


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

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---

Reduced test from 2.068.2
---
struct NullableRef(T)
{
    T* _value;

    inout(T) get() inout {
        return *_value;
    }

    alias get this;
}

struct IMSGeo
{
    NullableRef!IMSGeo parent;
}
---

Bug no longer reproducible on latter versions.

--


More information about the Digitalmars-d-bugs mailing list