https://issues.dlang.org/show_bug.cgi?id=14690
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Walter Bright <[email protected]> --- This may not be solvable in the general case, consider: enum T = true; pragma(inline, T) int fun(int a) { return a; } The .di files are generated without having the semantic pass run. Hence, T is unknown when the pragma is encountered, i.e. whether it evaluates to true or false is unknown. Emitting the function body when T is false would be a mistake. --
