Bug 20057 – compiler hang on conflicting local and imported template

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-07-16T21:19:49Z
Last change time
2019-07-18T13:59:52Z
Keywords
ice, ice-on-invalid-code, pull
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2019-07-16T21:19:49Z
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 by dlang-bot — 2019-07-18T13:02:09Z
@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 by dlang-bot — 2019-07-18T13:59:52Z
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