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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Iain Buclaw <[email protected]> 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: -------