digitalmars.D.bugs - [Issue 14739] New: Immutable alias to template triggers dmd assert
- via Digitalmars-d-bugs (26/27) Jun 26 2015 https://issues.dlang.org/show_bug.cgi?id=14739
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: nobody puremagic.com Reporter: joeyemmons yahoo.com 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.dAssertion failure: 'type->ty != Tstruct || ((TypeStruct *)type)->sym == this' on line 929 in file 'struct.c' --
Jun 26 2015