Bug 10857 – ICE(glue.c, bugzilla 2962?) or compiles, depending on the files order

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-19T20:59:00Z
Last change time
2013-08-27T13:21:07Z
Keywords
ice, pull, rejects-valid
Assigned to
nobody
Creator
kekeniro2

Comments

Comment #0 by kekeniro2 — 2013-08-19T20:59:24Z
This is somehow similar to Issue 8071. COMMAND: dmd -inline moda.d modb.d # files' order is significant. OUTPUT:(by 2.063.2) modb.d(4): Error: function modb.foo compiler error, parameter 'outer', bugzilla 2962? Assertion failure: '0' on line 817 in file 'glue.c' SOURCES: --moda.d import std.algorithm; --modb.d import std.algorithm; import moda; void foo(bool outer) { int[] infos; infos.filter!(s=>outer)(); // NG: error is triggered here //infos.filter!((int s)=>outer)(); // OK } void main() {}
Comment #1 by k.hara.pg — 2013-08-19T21:59:34Z