Bug 8499 – ICE on undefined identifier

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-02T13:55:00Z
Last change time
2014-06-08T02:42:33Z
Assigned to
nobody
Creator
simen.kjaras

Comments

Comment #0 by simen.kjaras — 2012-08-02T13:55:14Z
This code: import std.variant; void main() { (Variant()).get!(typeof(() => i)); } Gives this error: foo.d(4): Error: undefined identifier i Assertion failure: 'fd && fd->inferRetType' on line 81 in file 'mangle.c' abnormal program termination
Comment #1 by k.hara.pg — 2012-08-04T11:51:56Z
Reduced test case: struct Variant { @property T get(T)() { struct X {} // necessary } } void main() { (Variant()).get!(typeof(() => i)); }
Comment #2 by yebblies — 2013-11-24T21:20:35Z
No longer ICEs
Comment #3 by github-bugzilla — 2014-06-08T02:42:30Z