http://d.puremagic.com/issues/show_bug.cgi?id=6601

           Summary: Regression(2.053): CTFE segfault taking address of
                    function template
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2011-09-04 13:45:54 PDT ---
Found in Phobos. It's crashing while printing an error message. Error message
was printed correctly in 2.052 and earlier.
============

template curry(alias fun) {
    int curry(int arg) {
        return fun(arg, 5);
    }
}

void foo() {
    int f2(int a, int b) { return a + b; }

    enum xe = 5;
    enum fe = &curry!(f2);
    static assert(fe(6) == 11);
}

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

Reply via email to