https://issues.dlang.org/show_bug.cgi?id=14739
Issue ID: 14739
Summary: Immutable alias to template triggers dmd assert
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
The following code when trying to compile triggers an assert in dmd.
module main;
void main(string[] args)
{
immutable int a;
immutable int b;
test!a ta;
test!b tb;
}
struct test(alias a){}
>dmd main.d
Assertion failure: 'type->ty != Tstruct || ((TypeStruct *)type)->sym == this'
on line 929 in file 'struct.c'
--