Bug 11971 – [ICE] (interpret.c line 357) with undefined identifier

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-01-22T10:55:00Z
Last change time
2014-04-09T09:09:44Z
Keywords
CTFE, ice
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2014-01-22T10:55:19Z
Wrong code: void main() { import std.algorithm: filter, map; enum foo = (int n) => [1].map!(x); enum bar = [1].filter!(n => foo(n)); } DMD 2.065beta crashes: test.d(3): Error: undefined identifier x Assertion failure: '0' on line 357 in file 'interpret.c'
Comment #1 by k.hara.pg — 2014-04-09T09:09:44Z
*** This issue has been marked as a duplicate of issue 12174 ***