[Issue 7795] New: Ddoc emits garbage if a default argument contains a struct constructor call

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 29 10:41:16 PDT 2012


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: nobody at puremagic.com
        ReportedBy: smjg at iname.com


--- Comment #0 from Stewart Gordon <smjg at 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: -------


More information about the Digitalmars-d-bugs mailing list