https://issues.dlang.org/show_bug.cgi?id=15484
Issue ID: 15484 Summary: core.memory.GC.disable() is not @nogc Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nob...@puremagic.com Reporter: lt.infiltra...@gmail.com I don't know whether this is valid, but core.memory.GC.disable() is not @nogc. Should the following code be classified as able to hold a @nogc tag and be able to be called by @nogc functions? auto foo() { core.memory.GC.disable(); // do something including allocations core.memory.GC.enable(); return something; } --