Bug 7795 – Ddoc emits garbage if a default argument contains a struct constructor call

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-29T10:41:00Z
Last change time
2012-10-27T12:01:26Z
Keywords
ddoc, pull
Assigned to
andrej.mitrovich
Creator
smjg

Attachments

IDFilenameSummaryContent-TypeSize
1082ddoc_bug.htmlDdoc output for the testcasetext/html581

Comments

Comment #0 by smjg — 2012-03-29T10:41:43Z
Created attachment 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));
Comment #1 by github-bugzilla — 2012-10-27T11:59:08Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e3f3036de2d01071ffb645652724ef035d1c1254 Fixes Issue 7795 - Original type must be stored before semantic analysis. https://github.com/D-Programming-Language/dmd/commit/f899b4847e10598a7d2db13dc281ed51bd163f7c Merge pull request #1225 from AndrejMitrovic/Fix7795 Fix Issue 7795 - Ddoc emits garbage if a default argument contains a struct constructor call
Comment #2 by yebblies — 2012-10-27T12:01:26Z