D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7500 - [ICE] (template.c line 5287) with immutable lambda function
Summary: [ICE] (template.c line 5287) with immutable lambda function
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: ice, pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-02-13 20:49 UTC by bearophile_hugs
Modified: 2012-02-27 12:11 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:49:10 UTC
void main() {
    alias immutable bool function(int[]) Foo;
    Foo f = a => true;
}


DMD 2.058beta3:

Assertion failure: 'global.errors' on line 5287 in file 'template.c'
Comment 1 bearophile_hugs 2012-02-20 14:53:25 UTC
See also issue 7554
Comment 3 github-bugzilla 2012-02-27 11:55:55 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2c7907c613736338fbde6deb1c38a493154a2d48
fix Issue 7500 - [ICE] (template.c line 5287) with immutable lambda function

https://github.com/D-Programming-Language/dmd/commit/b96f7d5a363eaca65dcc7402321c6f5d019ad048
Merge pull request #768 from 9rnsr/fix7500

Issue 7500 - [ICE] (template.c line 5287) with immutable lambda function