www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5120] New: [ICE] 'impl' on line 4018 in file 'mtype.c' on void associative arrays

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5120

           Summary: [ICE] 'impl' on line 4018 in file 'mtype.c' on void
                    associative arrays
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: sandford jhu.edu


--- Comment #0 from Rob Jacques <sandford jhu.edu> 2010-10-25 22:16:41 PDT ---
The following:

enum c = (void[int]).sizeof;

Results in an 'impl' on line 4018 in file 'mtype.c' with DMD 2.049. I've marked
this ICE on valid, since void[int] b; is currently accepted as a valid
declaration by DMD.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 25 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5120


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug 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 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: -------
Oct 30 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5120


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2010-11-07
14:12:18 PST ---
http://www.dsource.org/projects/dmd/changeset/741

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