[Issue 20280] New: Compiler segfault when building two small files
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 8 00:07:41 UTC 2019
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: nobody at puremagic.com
Reporter: briancschott at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list