www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14096] New: ICE in toir.c: 187

https://issues.dlang.org/show_bug.cgi?id=14096

          Issue ID: 14096
           Summary: ICE in toir.c: 187
           Product: D
           Version: D1 & D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: vlevenfeld gmail.com

with dmd git head:

----------M1.d---------------

struct Baz (alias f)
{            
    void g (){}
}

auto baz (alias f)(void[])
{
    return Baz!f();
}
auto bar ()
{
    return [].baz!(i => i);
}

----------M2.d---------------

import M1;
import std.typecons;

auto x (alias s)()
{
    typeof(s) p;
}

auto foo (T)(T t)
    {x!t;}

void main ()
{        
    tuple(bar).foo;
}

---------result---------------

Internal error: toir.c 187

--
Jan 31 2015