Bug 6729 – [ICE] (backend\symbol.c) With tupleof of 2-items tuple

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-09-25T11:08:00Z
Last change time
2012-01-06T01:36:27Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-09-25T11:08:27Z
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 by k.hara.pg — 2012-01-06T01:36:27Z
*** This issue has been marked as a duplicate of issue 4940 ***