D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18343 - Crash when importing empty module and package in subfolder
Summary: Crash when importing empty module and package in subfolder
Status: RESOLVED DUPLICATE of issue 20518
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-31 10:33 UTC by FeepingCreature
Modified: 2020-01-27 02:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description FeepingCreature 2018-01-31 10:33:25 UTC
Steps to reproduce:

mkdir -p a/b
touch a/b/x.d
touch a/b/package.d
echo "import a.b, a.b.x;" > bug.d
dmd bug.d

Expected:

Some error.

Actual:

DMD segfaults.
Comment 1 Vladimir Panteleev 2018-07-10 13:28:25 UTC
Looks like the same issue:

mkdir -p p1/p2/p3
touch p1/p2/p3/m.d
echo 'import p1.p2.p3.m;' > p1/p2/p3/package.d
echo 'import p1.p2.p3;' > test.d
dmd -o- test.d
Comment 2 Boris Carvajal 2020-01-27 02:59:02 UTC

*** This issue has been marked as a duplicate of issue 20518 ***