[Issue 11875] New: static if template type deduction causes infinite recursion with recursive alias this
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 6 04:40:37 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11875
Summary: static if template type deduction causes infinite
recursion with recursive alias this
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2014-01-06 04:40:34 PST ---
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.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list