<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 16.12.2011, at 16:32, Nicola Gigante wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Hello.<br><br>Consider this piece of code:<br><br>struct S {<br>  S(int);<br>};<br><br>void func() {<br> int a[] = { [0 ... 2] = 3.0 };<br> S s[] = { [0 ... 2] = 3 };<br>}<br><br>In the first case (int array), the syntactic form of the InitListExpr<br>node contains the ImplicitCastExpr that builds the initialization<br>of the designator subobjects, while in the second case, the<br>syntactic form contains only the IntegerLiteral, without all the<br>implicit casts and CXXConstructExpr.<br><br>This inconsistency makes the code of some clients more<br>complicated than needed.<br><br>Here is a patch that fixes this behaviour. It passes all the tests.<br>If you think it's ok, I'll commit it.<br></div></blockquote></div><br><div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font></div></blockquote><br></div><div>Looks basically good to me, but I would appreciate a comment that describes what exactly the whole "LastCheckedObject" thing does.</div><div><br></div><div>Sebastian</div></body></html>