www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20057] New: [REG master] compiler hang on conclicting local

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

          Issue ID: 20057
           Summary: [REG master] compiler hang on conclicting local and
                    imported symbol
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice, ice-on-invalid-code
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

Regression in DMD master, the following code used to be rejected quickly now it
hangs the compiler:

---
struct BlackHole(alias T){ T t;}
import std.typecons: BlackHole;

extern(C++) interface Inter
{
    void func();
}

BlackHole!Inter var;    
---

--
Jul 16 2019