Thread overview
[Issue 11538] [ICE] stack overflow with recursive NullableRef fails
Oct 11, 2018
Iain Buclaw
October 11, 2018
https://issues.dlang.org/show_bug.cgi?id=11538

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--- Comment #1 from Iain Buclaw <ibuclaw@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.

--
October 12, 2018
https://issues.dlang.org/show_bug.cgi?id=11538

--- Comment #2 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/70344173d9379cd35873dff9133a81e55260923f fix Issue 11538: stack overflow with recursive NullableRef

https://github.com/dlang/dmd/commit/5434917aaa622b9861ff7e2e68403e87f791022f Merge pull request #8826 from ibuclaw/issue11538

fix Issue 11538: stack overflow with recursive NullableRef merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>

--
October 12, 2018
https://issues.dlang.org/show_bug.cgi?id=11538

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--