ok Hara Kenji just fixed the bug, see <a href="https://github.com/D-Programming-Language/dmd/pull/2041">https://github.com/D-Programming-Language/dmd/pull/2041</a><div><br></div><div>So what's left unspecified now wrt DIP40?</div>
<div><br></div><div>My proposal was to just address case C2 below, not C1 (at least initially):</div><div><br></div><div><font color="#222222" face="arial, sans-serif">case C1:</font><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">template A(T1) {</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">struct A{</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"> this()(T1 a) {} </span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">}</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">}</span></div>
<div><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><br></span></div><div><font color="#222222" face="arial, sans-serif">case C2: </font><br style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
</div><div><div><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">struct A(T1)</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">{ </span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"> this()(T1 a) {}</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">}</span></div>
</div><div><br></div><div>Even though struct A(T1) may internally be implemented as <span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">template A(T1), I think the most useful / less problematic conversion is just case C2.</span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">In other words, as i said before, </span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">the constructors inside a template (as in case C1) would note be considered as part of the overload set for this DIP40 (at least initially). </span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><br></div><div><div class="gmail_quote">On Tue, May 14, 2013 at 12:02 PM, Timon Gehr <span dir="ltr"><<a href="mailto:timon.gehr@gmx.ch" target="_blank">timon.gehr@gmx.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 05/14/2013 05:08 PM, Kenji Hara wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
...<div class="im"><br>
<br>
Current dmd behavior is definitely a bug. Could you please file it in<br>
bugzilla?<br></div>
...<br>
</blockquote>
<br>
<a href="http://d.puremagic.com/issues/show_bug.cgi?id=10083" target="_blank">http://d.puremagic.com/issues/<u></u>show_bug.cgi?id=10083</a><br>
<br>
</blockquote></div><br></div>