[Issue 6729] New: [ICE] (backend\symbol.c) With tupleof of 2-items tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 25 11:08:58 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6729

           Summary: [ICE] (backend\symbol.c) With tupleof of 2-items tuple
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-09-25 11:08:27 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list