www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13673] New: ICE(backend/cod2.d 5114) Destructor and templated

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 puremagic.com
          Reporter: sinkuupump 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();
}

```

--
Nov 02 2014