Bug 7681 – Regression(2.059head):ICE:opCatAssign(delegate) to undefined identifier
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-03-10T21:43:00Z
Last change time
2012-03-15T14:28:47Z
Assigned to
nobody
Creator
kekeniro2
Comments
Comment #0 by kekeniro2 — 2012-03-10T21:43:39Z
When building the following code, dmd crushes after compile-error message.
DMD 2.058 does not crush.
void main() {
undefined ~= delegate(){};
}
This syntax is frequently used by DFL applications. Such as:
auto object = new SomeObject(); // defined, of course :)
object.click ~= (sender, args){ doSomething(); };
Environment:
Windows XP SP3 32bit
DMD 2.059head