Bug 9158 – [ICE](glue.c line 787) with reduce from another module

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-12-14T16:29:00Z
Last change time
2013-11-06T06:28:50Z
Keywords
ice, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-12-14T16:29:36Z
First module, named "module1.d": import std.stdio; import module2; void main() {} Second module, named "module2.d": import std.algorithm: reduce; struct Foo { string bar() { auto spam = (string s, int) => ""; return reduce!spam("", [1]); } } It generates, dmd 2.061alpha: Assertion failure: '!vthis->csym' on line 787 in file 'glue.c'
Comment #1 by jadit2 — 2013-06-12T16:16:49Z
*** Issue 10340 has been marked as a duplicate of this issue. ***
Comment #2 by jadit2 — 2013-06-12T16:18:38Z
I'm getting the same issues on Windows 7 with DMD 2.063. If I take out all the "reduce" statements in sub-modules, the build works again. Windows 7: DMD 2.063 ============================== Assertion failure: '!vthis->csym' on line 786 in file 'glue.c'
Comment #3 by clugdbug — 2013-06-14T04:47:06Z
Probably a duplicate of bug 4481
Comment #4 by bugzilla — 2013-10-07T00:01:13Z
Compiles without error on 2.064 head.
Comment #5 by public — 2013-11-06T06:28:50Z
*** Issue 11450 has been marked as a duplicate of this issue. ***