[Issue 1477] New: DMD hangs on named struct field initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 5 22:03:15 PDT 2007


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

           Summary: DMD hangs on named struct field initializer
           Product: D
           Version: 2.004
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: torhu at yahoo.com


This puts dmd 2.004 into and endless loop.  I don't know if this is a
regression or not, since DMD 2.003 won't accept this code at all because of
issue 1342.

---
struct Foo {
   int x;
}

const Foo f = {
   x: 1
   //1  // using this instead works just fine
};

Foo g = f;
---


-- 



More information about the Digitalmars-d-bugs mailing list