[Issue 13673] New: ICE(backend/cod2.d 5114) Destructor and templated function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Nov 2 17:15:09 PST 2014


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

          Issue ID: 13673
           Summary: ICE(backend/cod2.d 5114) Destructor and templated
                    function
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: sinkuupump at gmail.com

The code below causes ICE(Internal error: backend/cod2.c 5114).
Introduced in DMD pull #4078:
https://github.com/D-Programming-Language/dmd/pull/4078


```
struct File
{
    string _name;
    ~this() {}
}

string name;

void test(T)()
{
    File(name);
    File(name);
}

void main()
{
    test!int();
}

```

--


More information about the Digitalmars-d-bugs mailing list