[Issue 9663] New: [REG2.063a] ICE caused by issue 7444 change.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 7 16:55:48 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9663
Summary: [REG2.063a] ICE caused by issue 7444 change.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-03-07 16:55:45 PST ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list