D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11264 - dmd crash with variadic lambda
Summary: dmd crash with variadic lambda
Status: RESOLVED DUPLICATE of issue 9577
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2013-10-14 16:20 UTC by bearophile_hugs
Modified: 2013-11-22 22:10 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 2013-10-14 16:20:31 UTC
This program causes me a crash, I don't know why (dmd 2.064beta1):


void main() {
    static foo = (int[] x...) => 0;
    foo();
}


A similar problem:

import std.typecons: Tuple;
void main() {
    alias Foo = Tuple!(int);
    static bar = (Foo x) => 0;
    bar(Foo());
}
Comment 1 Maxim Fomin 2013-10-15 05:33:59 UTC
In 2.064 beta it gives:

Internal error: backend/symbol.c 1017
Comment 2 Kenji Hara 2013-11-22 22:10:47 UTC

*** This issue has been marked as a duplicate of issue 9577 ***