https://d.puremagic.com/issues/show_bug.cgi?id=12061

           Summary: Refused array append with struct with void field
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2014-02-02 08:06:57 PST ---
struct Foo { int a = void; }
void main() {
    Foo[] arr;
    arr ~= Foo();
}


dmd 2.065.0b2 gives me:

...>dmd -O test.d
test.d(4): Error: variable _TMP0 used before set

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

Reply via email to