www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6845] New: ICE in Type::syntaxCopy

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

           Summary: ICE in Type::syntaxCopy
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: mrmocool gmx.de



This is the DustMite reduction:

struct Bla
{
    this(objects)
    {
    }
}

Error: undefined identifier objects, did you mean import object?
_error_ 0x18d5830
ty = 35
dmd: mtype.c:145: virtual Type* Type::syntaxCopy(): Assertion `0' failed.

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




This is more like the original problem:

struct Blub
{
//    alias int type;
}

struct Bla(T)
{
    this(T.type t) // doesn't happen with a normal method
    {
    }
}

alias Bla!Blub gg;

Error: no property 'type' for type 'Blub'
Error: T.type is used as a type
1: _error_ 0x1620830
ty = 35
dmd: mtype.c:145: virtual Type* Type::syntaxCopy(): Assertion `0' failed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 23 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6845


Trass3r <mrmocool gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



Seems like this has been fixed in the meantime.

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