digitalmars.D.bugs - [Issue 16460] New: [REG2.071] ICE in local import for a package
- via Digitalmars-d-bugs (41/41) Sep 01 2016 https://issues.dlang.org/show_bug.cgi?id=16460
https://issues.dlang.org/show_bug.cgi?id=16460 Issue ID: 16460 Summary: [REG2.071] ICE in local import for a package protection func Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: jiki red.email.ne.jp Internal AV with Windows 7 64-bit and Win10. This seems to be a 2.071 regression about package access. 2.071.2 beta3 doesn't fix it. Reduced code is here. COMMAND: dmd test.d imp.d RESULT: object.Error (0): Access Violation ---------------- 0x00402502 0x0108B660 0x0108C100 CODE: *imp.d module pkg.imp; package void pkgFunc() { } // package access needs *test.d module pkg.test; void main() { //import pkg.imp; // this works enum d = (){ import pkg.imp; // this crashes pkgFunc(); }; } --
Sep 01 2016