Bug 14132 – [ICE] error on arrays

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2015-02-06T13:33:00Z
Last change time
2015-02-14T15:55:58Z
Keywords
ice
Assigned to
nobody
Creator
misugi-pwnu

Comments

Comment #0 by misugi-pwnu — 2015-02-06T13:33:53Z
Hi, I have an ICE when trying to compile this code : module main; import std.stdio; void main(string[] args) { bool[][] components = [[false, false]]; bool[] masks = [true, false]; auto wat = (components[0][] & masks[])[]; } C:\D\dmd2\windows\bin\dmd.exe -debug -gc "main.d" "Entity.d" "EntityManager.d" "EventManager.d" "-IC:\D\dmd2\src\druntime\import" "-IC:\D\dmd2\src\phobos" "-odobj\Debug" "-ofC:\Users\robertg\Documents\Projets\Decs\Decs\bin\Debug\Decs.exe" Internal error: e2ir.c 1902 Exit code 1 I don't remember what I was trying to do, but I tried to give you minimal code.
Comment #1 by k.hara.pg — 2015-02-14T15:55:58Z
(In reply to Misu from comment #0) > Internal error: e2ir.c 1902 > Exit code 1 The ICE issue is properly fixed in git-head, and the code will report following error. main.d(10): Error: array operation components[0][] & masks[] without destination memory not allowed