http://d.puremagic.com/issues/show_bug.cgi?id=7494

           Summary: Selective import does not work inside a function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: kenn...@gmail.com


--- Comment #0 from kenn...@gmail.com 2012-02-13 08:27:27 PST ---
Test case:

======================
void test7494()
{
    import core.bitop : bsr;
    // ^ or just any selective import statements
    bsr(1);
}
======================

Compiling with 'dmd -c test.d' gives

    Error: undefined identifier bsr

The error was introduced in commit c022036c8f9fea1672bb2c56edd610715f6335c8
(for fixing bug 314).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to