www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 513] New: using struct initializer on static array crashes the compiler

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

           Summary: using struct initializer on static array crashes the
                    compiler
           Product: D
           Version: 0.174
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: mslenc gmail.com


==== case1.d ====
void foo() {
    int[1] barbar = { 1 };
}

==== case2.d ====
int[1] barbar = { 1 };


dmd case1.d
Assertion failure: '0' on line 219 in file 'init.c' abnormal program termination
dmd case2.d
dmd.exe has encountered a problem and needs to close. We are sorry for the inconvenience. in some recent previous version (not sure which one, though), case2 correctly reported what the error is, and case1 still crashed. --
Nov 15 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=513


deewiant gmail.com changed:

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





Fixed in DMD 0.176.


-- 
Dec 03 2006