www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11856] New: DMD segfault with circular template constraints

https://d.puremagic.com/issues/show_bug.cgi?id=11856

           Summary: DMD segfault with circular template constraints
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: peter.alexander.au gmail.com


--- Comment #0 from Peter Alexander <peter.alexander.au gmail.com> 2014-01-01
07:14:35 PST ---
struct A {}

void f(T)(T x) if (is(typeof(x.g()))) {}
void g(T)(T x) if (is(typeof(x.f()))) {}

void main() { A().g(); }

Attempting to compile with default flags causes segfault.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 01 2014