[Issue 21484] New: Infinite recursion in core.memory : GC.{get,set,clr}Attr(const scope void*...)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 16 17:48:16 UTC 2020


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

          Issue ID: 21484
           Summary: Infinite recursion in core.memory :
                    GC.{get,set,clr}Attr(const scope void*...)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: pro.mathias.lang at gmail.com

```
import core.memory;
const(void)* bug (const(void)* ptr)
{
    GC.getAttr(ptr);
    return ptr;
}

void main ()
{
    auto ptr = new int*;
    bug(ptr);
}
```

Running this with `dmd -run` never terminates. Fix incoming.

--


More information about the Digitalmars-d-bugs mailing list