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

           Summary: [ICE](symbol.c line 1025) with const struct heap
                    allocation
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2012-12-26 03:13:25 PST ---
struct Foo(T) { T x; }
void bar(T)(in Foo!T*) {}
void main () {
    const f = new Foo!int(1);
    bar(f);
}


DMD 2.061alpha gives:

Internal error: backend\symbol.c 1025


This is not exactly a regression because this syntax was not allowed in DMD
2.060, but it's a bug not present in DMD 2.060.

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

Reply via email to