www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 628] New: Assertion failure: '0' on line 91 in file 'init.c'

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

           Summary: Assertion failure: '0' on line 91 in file 'init.c'
           Product: D
           Version: 0.175
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: deewiant gmail.com


Nothing disallows this, as far as I can tell, so I marked this as
ice-on-valid-code:

void main() {
        // any type is fine, 'int' used for its brevity
        int x = void;
        x = x.init;
}

Of course, it's debatable whether this is useful.


-- 
Dec 02 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=628


bugzilla digitalmars.com changed:

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




------- Comment #1 from bugzilla digitalmars.com  2006-12-12 04:15 -------
Fixed DMD 0.176


-- 
Dec 12 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=628





------- Comment #2 from thomas-dloop kuehne.cn  2006-12-30 09:49 -------
Added to DStress as
http://dstress.kuehne.cn/run/v/void_05_A.d
http://dstress.kuehne.cn/run/v/void_05_B.d


-- 
Dec 30 2006