D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7499 - [ICE] ('cast.c line 1495) with lambda array
Summary: [ICE] ('cast.c line 1495) with lambda array
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-02-13 20:48 UTC by bearophile_hugs
Modified: 2012-03-05 12:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2012-02-13 20:48:27 UTC
void main() {
    int function(int)[] a = [x => x];
}


DMD 2.058beta3:

Assertion failure: 'type && type != Type::tvoid' on line 1495 in file 'cast.c'
Comment 2 github-bugzilla 2012-03-05 11:29:24 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5c2e6af1b60c0c842391339a27c6d334f05c8fe1
fix Issue 7499 - [ICE] ('cast.c line 1495) with lambda array