7681 – Regression(2.059head):ICE:opCatAssign(delegate) to undefined identifier

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7681 - Regression(2.059head):ICE:opCatAssign(delegate) to undefined identifier
Summary: Regression(2.059head):ICE:opCatAssign(delegate) to undefined identifier
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
Reported: 2012年03月10日 21:43 UTC by kekeniro2
Modified: 2012年03月15日 14:28 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description kekeniro2 2012年03月10日 21:43:39 UTC
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
Comment 2 github-bugzilla 2012年03月14日 22:35:16 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/bd5f360c3aeb3e7948bc1d707ab4e90542f55cbf
Merge pull request #805 from donc/regression7681
Fix issue 7681 Regression(2.059head):ICE:opCatAssign(delegate) to undefi...


AltStyle によって変換されたページ (->オリジナル) /