http://d.puremagic.com/issues/show_bug.cgi?id=11163

           Summary: [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong
                    expression
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-10-03 09:54:35 PDT ---
int[] foo() {
    return [1];
}
void main() {
    immutable a = foo();
    pragma(msg, a);
}



DMD 2.064 alpha gives:

test.d(5): Error: cannot implicitly convert expression (foo()) of type int[] to
immutable(int[])
Assertion failure: '0' on line 355 in file 'ctfeexpr.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to