D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6729 - [ICE] (backend\symbol.c) With tupleof of 2-items tuple
Summary: [ICE] (backend\symbol.c) With tupleof of 2-items tuple
Status: RESOLVED DUPLICATE of issue 4940
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2011-09-25 11:08 UTC by bearophile_hugs
Modified: 2012-01-06 01:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2011-09-25 11:08:27 UTC
import std.algorithm: map;
struct Foo { int x, y; }
Foo[] bar(int) {
    return [Foo(1, 2)];
}
void main() {
    auto r = map!bar([1]);
    auto ab = r.front[0].tupleof;
}


This program causes a DMD crash if I compile it with -inline:

Internal error: backend\symbol.c 1032
Comment 1 Kenji Hara 2012-01-06 01:36:27 UTC

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