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

           Summary: Ddoc emits garbage if a default argument contains a
                    struct constructor call
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: ddoc
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: s...@iname.com


--- Comment #0 from Stewart Gordon <s...@iname.com> 2012-03-29 10:41:43 PDT ---
Created an attachment (id=1082)
Ddoc output for the testcase

struct TimeValue {
    this(int hour, int minute, int second = 0, int ms = 0) {}
}

///
struct DateTime {
    ///
    this(TimeValue t = TimeValue(0, 0)) {}
}
----------
signature of DateTime.this in the output:

    this(TimeValue t = (TimeValue __ctmp3; , __ctmp3).this(0,0,0,0));

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

Reply via email to