www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2489] New: import in struct causes assertion failure

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

           Summary: import in struct causes assertion failure
           Product: D
           Version: 1.033
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: gide nwawudu.com


struct X {
   import std.stdio;
}

void main(){
   X.std.stdio.writefln("");
}

DMD 1.033
C:> dmd test.d
Assertion failure: 'd' on line 4282 in file 'mtype.c'

DMD 2.021
C:> dmd test.d
Assertion failure: 'd' on line 5011 in file 'mtype.c'


-- 
Dec 03 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2489


bugzilla digitalmars.com changed:

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




------- Comment #1 from bugzilla digitalmars.com  2008-12-25 04:38 -------
Fixed dmd 1.038 amd 2.022


-- 
Dec 25 2008