www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11550] New: [ICE] Checking if std.conv.to compiles with an array of non-builtins results in an ICE in s2ir.c.

https://d.puremagic.com/issues/show_bug.cgi?id=11550

           Summary: [ICE] Checking if std.conv.to compiles with an array
                    of non-builtins results in an ICE in s2ir.c.
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: opantm2+dbugs gmail.com



Sample:

import std.conv;

struct Foo { }

void test(T)() {
    static if(is(typeof(to!T(string.init)))) { }    
}

void main() {
    test!(Foo[]);
}

Output:

rdmd test.d
Statement::toCBuffer()

Internal error: s2ir.c 135

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