Bug 9663 – [REG2.063a] ICE caused by issue 7444 change.

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-07T16:55:00Z
Last change time
2013-03-07T21:11:32Z
Keywords
ice, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-03-07T16:55:45Z
From: http://d.puremagic.com/issues/show_bug.cgi?id=7444#c13 I have tried this change, and now the first test case of this ER: int[100] foo() { int[100] a; return a; } void main() { int[10_000] a, b; auto c = new int[10_000]; a = 1; a = b; a = c; auto d = foo(); } gives a ICE: temp.d(8): Warning: explicit element-wise assignment (a)[] = 1 is better than a = 1 temp.d(10): Warning: explicit element-wise assignment (a)[] = (c)[] is better than a = c Assertion failure: '0' on line 1193 in file 'glue.c' ------------------------ From: http://d.puremagic.com/issues/show_bug.cgi?id=7444#c14 Smaller test case: void main() { int[1] a; a = 1; } ------------------------ From: http://d.puremagic.com/issues/show_bug.cgi?id=7444#c16 > What version and compiler switch do you use? I cannot reproduce the ICE. I am using the GIT head compiler, I have downloaded and compiled dmd few hours ago, after this patch was merged. I am on Windows 32 bit, and I have compiled the code with: dmd -wi test.d
Comment #1 by k.hara.pg — 2013-03-07T16:59:12Z
Comment #2 by github-bugzilla — 2013-03-07T21:05:55Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/978aeaec777c7445634476877eb088db3b9d46bc fix Issue 9663 - [REG2.063a] ICE caused by issue 7444 change. https://github.com/D-Programming-Language/dmd/commit/40424680afd81ada506334550ef63c5fd76265b8 Merge pull request #1727 from 9rnsr/fix9663 Issue 9663 - [REG2.063a] ICE caused by issue 7444 change.