<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 25, 2015 at 10:20 AM, Daniel Dilts via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>It makes sense to me that int->MyType->int occurs.  Could someone explain what I am missing, why I get these results, and how to get what I would expect (X->MyType->X)?</div></div>
</blockquote></div><div><br></div></span><div>I am seeing in the AST an ImplicitCastExpr to int.  Why is this present?  I thought that the arguments are passed to a variadic function as their actual types.</div><div class="gmail_extra"><br></div></div></blockquote><div><br></div><div>The default argument promotions (and some others, such as nullptr_t -> void*) apply per [expr.call]p7 (in C++11).</div><div><br></div><div>-- James</div><div><br></div></div></div></div>