December 16, 2020 [Issue 21484] New: Infinite recursion in core.memory : GC.{get,set,clr}Attr(const scope void*...) | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: pro.mathias.lang@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. -- |
Copyright © 1999-2021 by the D Language Foundation