[Issue 11856] New: DMD segfault with circular template constraints

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 1 07:14:38 PST 2014


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 at puremagic.com
        ReportedBy: peter.alexander.au at gmail.com


--- Comment #0 from Peter Alexander <peter.alexander.au at 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: -------


More information about the Digitalmars-d-bugs mailing list