[Issue 5120] ICE(mtype.c) void associative arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 30 06:38:05 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5120


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug at yahoo.com.au
            Summary|[ICE] 'impl' on line 4018   |ICE(mtype.c) void
                   |in file 'mtype.c' on void   |associative arrays
                   |associative arrays          |


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-10-30 06:37:11 PDT ---
It should just be illegal to have an AA of type void. If applied to D1 as well,
this would close bug 1606 "Cannot insert to void[int]. void[int] should be a
hash set." which has been open with a patch for a thousand years.


mtype.c, line 3956, TypeAArray::semantic()
----
    switch (next->toBasetype()->ty)
    {
        case Tfunction:
+        case Tvoid:
        case Tnone:
            error(loc, "can't have associative array of %s", next->toChars());
            return Type::terror;
    }

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


More information about the Digitalmars-d-bugs mailing list