Bug 20051 – ICE in func literal used in __traits(compiles)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-07-14T22:53:55Z
Last change time
2019-07-16T10:23:03Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2019-07-14T22:53:55Z
--- struct Templ2(Args...) { } struct WillAlsoWork(alias T : Templ!Args, Args...) { alias A = Args[0]; } void main() { alias C2 = Templ2!int; static assert(!__traits(compiles, { alias B2 = WillAlsoWork!C2; B2.A a2; })); } ---
Comment #1 by dlang-bot — 2019-07-14T22:57:12Z
@Basile-z created dlang/dmd pull request #10176 "fix issue 20051 - ICE in func literal used in __traits(compiles)" fixing this issue: - fix issue 20051 - ICE in func literal used in __traits(compiles) https://github.com/dlang/dmd/pull/10176
Comment #2 by dlang-bot — 2019-07-16T09:26:03Z
@RazvanN7 created dlang/dmd pull request #10186 "Fix Issue 20051 - ICE in func literal used in __traits(compiles)" fixing this issue: - Fix Issue 20051 - ICE in func literal used in __traits(compiles) https://github.com/dlang/dmd/pull/10186
Comment #3 by dlang-bot — 2019-07-16T10:23:03Z
dlang/dmd pull request #10186 "Fix Issue 20051 - ICE in func literal used in __traits(compiles)" was merged into stable: - a40a6f862ec6d57e223462f17aa8049244f34ac3 by RazvanN7: Fix Issue 20051 - ICE in func literal used in __traits(compiles) https://github.com/dlang/dmd/pull/10186