<div dir="ltr">On Tue, Sep 24, 2013 at 11:48 PM, MAYUR PANDEY <span dir="ltr"><<a href="mailto:mayur.p@samsung.com" target="_blank">mayur.p@samsung.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div>
<p>This is the similar way it has been fixed in gcc. They have kept a note of parent and they break the loop when it is again noticed. With the usage of global</p>
<p>map there are no performance issues as such. Also please suggest the alternate way of fixing this issue.</p></div></blockquote><div><br></div><div>I'm not an expert on overload resolution rules, so if you're certain we actually need a map to catch this case, that's fine, I guess.  (Richard, can you chime in?)</div>

<div><br></div><div>The rest of my feedback still applies.</div>
<div><br></div><div>-Eli</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<p>------- <b>Original Message</b> -------</p>
<p><b>Sender</b> : Eli Friedman<<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></p>
<p><b>Date</b> : Sep 10, 2013 06:53 (GMT+09:00)</p>
<p><b>Title</b> : Re: Fix for ICE in clang due to infinite loop.</p>
<p> </p>
<div dir="ltr">
<div>On Mon, Sep 9, 2013 at 5:08 AM, MAYUR PANDEY <span dir="ltr"><<a href="mailto:mayur.p@samsung.com" target="_blank">mayur.p@samsung.com</a>></span> wrote:<br></div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote style="border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>
<p><span style="font-family:Arial">Hi,</span></p>
<p><span style="font-family:Arial">Attached is the fix for Compiler crash caused by infinite loop when we try to compile the following code.</span></p>
<p><span style="font-family:Arial"></span> </p>
<p><span style="font-family:Arial">struct A;</span></p>
<p><span style="font-family:Arial">struct B<br>{<br>  B (A const &); </span></p>
<p><span style="font-family:Arial">  B (B &); <br>};</span></p>
<p><span style="font-family:Arial">struct A<br>{<br>  A (B);<br>};</span></p>
<p><span style="font-family:Arial">B<br>f (B const& b)<br>{<br>  return b; </span></p>
<p><span style="font-family:Arial">}</span></p></div></blockquote>
<div><br></div></div></div></div></blockquote></div><br></div></div>