https://issues.dlang.org/show_bug.cgi?id=20280
Issue ID: 20280
Summary: Compiler segfault when building two small files
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Steps to reproduce:
1) Create a.d and b.d with the following contents
a.d:
----------------------------------------
struct Alpha(uint _)
{
import a;
}
struct Foxtrot(uint _)
{
alias Attributes = Alpha!10;
enum A = 10;
}
----------------------------------------
b.d:
----------------------------------------
import a;
alias Charlie = Foxtrot!(0);
----------------------------------------
2) Run the compiler. `dmd a.d b.d`
I've been able to reproduce this issue with several front-end versions. It is
present in 2.088.1-beta.1 as well.
--