www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14782] New: Internal error: backend/cod1.c

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

          Issue ID: 14782
           Summary: Internal error: backend/cod1.c
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: yazan.dabain gmail.com

struct Foo
{
    void* a;
    int b;
}

int fun()
{
    return 0;
}

auto process(fun...)()
{
    Foo[fun.length] a;
    return a;
}

void main()
{
    Foo[1] output = process!fun();
}

------------------

Compiling the above using dmd 2.067.1 produces: `Internal error: backend/cod1.c
1713`
Compiling using dmd 2.068.0-b1 produces: `Internal error: backend/cod1.c 1711`

No flags are necessary to reproduce.

--
Jul 07 2015