www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17837] New: Static array initializers longer than array

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

          Issue ID: 17837
           Summary: Static array initializers longer than array length
                    should not be allowed
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dlang-bugzilla thecybershadow.net

void main()
{
    char[2] str = "0123456789abcdef";
}

--
Sep 17