D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20057 - compiler hang on conflicting local and imported template
Summary: compiler hang on conflicting local and imported template
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: ice, ice-on-invalid-code, pull
Depends on:
Blocks:
 
Reported: 2019-07-16 21:19 UTC by basile-z
Modified: 2019-07-18 13:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description basile-z 2019-07-16 21:19:49 UTC
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;    
---
Comment 1 Dlang Bot 2019-07-18 13:02:09 UTC
@Basile-z created dlang/dmd pull request #10194 "fix issue 20057 - compiler hang on conflicting local and imported template" fixing this issue:

- fix issue 20057 - compiler hang on conflicting local and imported template

https://github.com/dlang/dmd/pull/10194
Comment 2 Dlang Bot 2019-07-18 13:59:52 UTC
dlang/dmd pull request #10194 "fix issue 20057 - compiler hang on conflicting local and imported template" was merged into master:

- d5c87e2ea96221fca3fc66f351cd64da3ed2bd2f by Basile Burg:
  fix issue 20057 - compiler hang on conflicting local and imported template

https://github.com/dlang/dmd/pull/10194