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

--- Comment #0 from Andrej Mitrovic <> 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:
------- You are receiving this mail because: -------

Reply via email to