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();
};
}
Comment #1 by jiki — 2016-09-12T23:58:41Z
This looks like Issue 16348, but is NOT.
2.071.2 beta4 doesn't fix.
Comment #2 by code — 2016-09-13T05:33:10Z
(In reply to jiki from comment #1)
> This looks like Issue 16348, but is NOT.
> 2.071.2 beta4 doesn't fix.
It's another instance of Issue 16384, just a different place where the scope gets created without scope symbol.
https://github.com/dlang/dmd/pull/6128
Comment #3 by github-bugzilla — 2016-09-13T11:11:01Z