https://issues.dlang.org/show_bug.cgi?id=23520
Issue ID: 23520 Summary: pragma(inline, false) not applied to nested function declaration Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: ibuc...@gdcproject.org pragma(inline, false) inside a function applies to the outer function, not the nested declaration it is apparently part of. --- void inline(ref int x) { pragma(inline, false) static void noinline(ref int x) { } return noinline(x); } --- Not a single call to the nested static function when compiled with inline. --