www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18557] New: Types with 0 size should not be usable as aa key

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

          Issue ID: 18557
           Summary: Types with 0 size should not be usable as aa key types
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

Summary says it all.

  struct S { }
  int[S] aa;   // should fail to compile

--
Mar 05 2018