[Issue 23520] New: pragma(inline, false) not applied to nested function declaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 30 00:16:46 UTC 2022
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 at puremagic.com
Reporter: ibuclaw at 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.
--
More information about the Digitalmars-d-bugs
mailing list