http://d.puremagic.com/issues/show_bug.cgi?id=6991
Summary: Symbol not found when using function-local imports Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-11-22 19:32:22 PST --- import std.stdio; // import std.cpuid : threadsPerCPU; // ok void main() { import std.cpuid : threadsPerCPU; writeln(threadsPerCPU); // NG, undefined identifier threadsPerCPU } It doesn't complain about the import, but only when used in a function call, and only if it's imported within the function. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------