[Issue 16460] New: [REG2.071] ICE in local import for a package protection func
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Thu Sep  1 18:37:57 PDT 2016
    
    
  
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 at puremagic.com
          Reporter: jiki at 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();
    };
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list