www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12401] New: Internal Compiler Error for vector operation

https://d.puremagic.com/issues/show_bug.cgi?id=12401

           Summary: Internal Compiler Error for vector operation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2014-03-18 05:07:55 PDT ---
void main() {
    static immutable double[2] V = 0.5 * [1.0, 2.0];
}


DMD 2.066alpha gives:

test.d(2,36): Error: Internal Compiler Error: non-constant value [1.00000,
2.00000]

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