Segmentation fault in function hasPackageAccess(Module*, DSymbol*).
Test case:
file source/mypackage/bar.d
==============
module mypackage.bar;
package bool bar()
{
return false;
}
==============
file source/mypackage/foo.d
==============
module mypackage.foo;
void foo()
{
// removing the if-else also removes the segfault
if (false) {}
else
{
// changing this to a selective import removes the segfault
import mypackage.bar;
auto b = bar();
}
}
==============
Comment #1 by lodovico — 2016-08-02T08:42:33Z
Raising as a regression, as the test case compiles fine with 2.070.2 but segfaults with 2.071.1
Comment #2 by code — 2016-08-02T12:14:42Z
Seems like the anonymous scope created in the else branch after the import doesn't contain a parent link to the current module.