www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13513] New: class with void array member generate anonymous

https://issues.dlang.org/show_bug.cgi?id=13513

          Issue ID: 13513
           Summary: class with void array member generate anonymous error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: andrea.9940 gmail.com

Compiling the following code with DMD v2.066.0 returns an error without the
line where it is located.

class A {
   void[1] x;
}

--------------

Error: void does not have a default initializer

--
Sep 20 2014