https://issues.dlang.org/show_bug.cgi?id=16666
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid CC| |[email protected] Component|druntime |dmd Hardware|x86_64 |All Summary|core.sys.posix.sys.types |type inside 'static if' |uses c_long without |can't be used before import |importing its definition | OS|Linux |All Severity|enhancement |normal --- Comment #2 from [email protected] --- underlying issue seems to be this: // main.d my_long x; import core_stdc_config; // core_stdc_config.d static if (1) alias my_long = long; else alias my_long = long; main.d(1): Error: undefined identifier `my_long` error goes away if "my_long x;" is moved after the import, ": my_long" is added to make it a selective import, or if the "static if" is removed --
