[Issue 14739] New: Immutable alias to template triggers dmd assert

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 26 14:51:41 PDT 2015


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 at puremagic.com
          Reporter: joeyemmons at 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.d
Assertion failure: 'type->ty != Tstruct || ((TypeStruct *)type)->sym == this'
on line 929 in file 'struct.c'

--


More information about the Digitalmars-d-bugs mailing list