Bug 11875 – static if template type deduction causes infinite recursion with recursive alias this

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-06T04:40:00Z
Last change time
2014-01-15T09:43:20Z
Keywords
ice, pull
Assigned to
nobody
Creator
r.sagitario

Comments

Comment #0 by r.sagitario — 2014-01-06T04:40:34Z
compiling this code //-----8<------- class C1 { C2 c; alias c this; } class C2 { C1 c; alias c this; } struct T1(C) { C c; } static if(is(C1 == T1!C, C)) static assert(false); //----->8------- freezes dmd.
Comment #1 by r.sagitario — 2014-01-06T04:46:50Z