May 29, 2011 [Issue 6078] New: CTFE: ICE on foreach over array struct member which is null | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6078 Summary: CTFE: ICE on foreach over array struct member which is null Product: D Version: D2 Platform: x86 OS/Version: All Status: NEW Severity: major Priority: P2 Component: coffimplib AssignedTo: nobody@puremagic.com ReportedBy: code@klickverbot.at --- Comment #0 from klickverbot <code@klickverbot.at> 2011-05-29 11:31:41 PDT --- struct Foo { int[] bar; } enum baz = { Foo f; int i; foreach (e; f.bar) { i += e; } return i; }(); --- With latest DMD from Git master (c1b7e0a): Assertion failed: ((newval->op == TOKarrayliteral || newval->op == TOKassocarrayliteral || newval->op == TOKstring || newval->op == TOKslice || newval->op == TOKnull)), function interpretAssignCommon, file interpret.c, line 2563. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 02, 2011 [Issue 6078] CTFE: ICE on foreach over array struct member which is null | ||||
---|---|---|---|---|
| ||||
Posted in reply to klickverbot | http://d.puremagic.com/issues/show_bug.cgi?id=6078 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |FIXED --- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-06-01 22:50:41 PDT --- https://github.com/D-Programming-Language/dmd/commit/ead6900d7731e8c5893968f8424075aa860e89bb -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation