digitalmars.D.bugs - [Issue 23520] New: pragma(inline, false) not applied to nested
- d-bugmail puremagic.com (25/25) Nov 29 2022 https://issues.dlang.org/show_bug.cgi?id=23520
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: nobody puremagic.com Reporter: ibuclaw 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. --
Nov 29 2022