[Issue 11553] New: dmd segfault with recursive template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 19 04:39:24 PST 2013


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

           Summary: dmd segfault with recursive template
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: john.loughran.colvin at gmail.com


--- Comment #0 from John Colvin <john.loughran.colvin at gmail.com> 2013-11-19 12:39:23 GMT ---
An example that is clearly wrong code, but segfaults the compiler on
Scope::push

template A(alias T)
{
    template A()
    {
    alias A = T!();
    }
}
alias B() = A!(.B);

static if(A!B){}


I have similar but correct code that triggers the same fault, I'll add it when
I've minimised it properly.

-- 
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