www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5119] New: [ICE] with null initialization of a pointer to undefined identifier

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

           Summary: [ICE] with null initialization of a pointer to
                    undefined identifier
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



With this wrong program:


void main() {
    Foo* p = null;
}


DMD 2.049 crashes and shows:

test.d(2): Error: identifier 'Foo' is not defined
test.d(2): Error: Foo is used as a type
Assertion failure: 'tn->mod == MODimmutable' on line 879 in file 'mtype.c'

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


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 4830 ***

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