Summary: void static array should have init built-in propert
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Kenji Hara <> 2012-10-14 09:04:24 PDT ---
Following code doesn't work with current dmd (2.060).

void main()
  alias void[1] T;
  auto vsa = T.init;

test.d(4): Error: void does not have a default initializer

I think this is unnecessary restriction and almost a bug.
An element of void[1] should have '0' as a default initializer.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to