[Issue 11717] New: CTFE: [ICE] non-constant value with array ops.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 10 04:47:13 PST 2013


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

           Summary: CTFE: [ICE] non-constant value with array ops.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ibuclaw at ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-12-10 04:47:10 PST ---
Currently, trying to do array/vector operations in CTFE causes an ICE.

Tests:
---
enum int[4] A = [1,2,3,4];
enum int[4] B = [1,2,3,4];
// Internal Compiler Error: non-constant value [1, 2, 3, 4]
enum int[4] C = A[] + B[];

import core.simd;
enum int4 D = [1,2,3,4];
enum int4 E = [1,2,3,4];
// Internal Compiler Error: non-constant value [1, 2, 3, 4]
enum int4 F = D + E;

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


More information about the Digitalmars-d-bugs mailing list