[Issue 7494] New: Selective import does not work inside a function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 13 08:27:29 PST 2012
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: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at 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: -------
More information about the Digitalmars-d-bugs
mailing list