[Issue 4108] New: [ICE] __traits(isStaticArray) on empty static array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 21 13:45:14 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4108

           Summary: [ICE] __traits(isStaticArray) on empty static array
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-04-21 13:45:12 PDT ---
This is D2 code:


void foo(T)(T) {
    bool b = __traits(isStaticArray, T);
}
void main() {
    int[0] arr;
    foo(arr);
}


dmd 2.043 gives at runtime:
Internal error: ..\ztc\cod2.c 4333

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


More information about the Digitalmars-d-bugs mailing list