<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 4, 2015 at 2:45 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</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">It'd be simpler and would more directly match the C specification (and would handle a few other cases better, such as placeholder types and atomic types) if you instead passed the operand through DefaultLvalueConversion</div></blockquote><div><br></div><div>or rather, DefaultFunctionArrayLvalueConversion =)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">rather than matching against the decayed form of the type.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 4, 2015 at 11:23 AM, Aaron Ballman <span dir="ltr"><<a href="mailto:aaron@aaronballman.com" target="_blank">aaron@aaronballman.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The control expression for a _Generic selection expression should have<br>
its type decayed and qualifiers stripped when determining which<br>
selection it matches. e.g., the following should compile:<br>
<br>
  _Generic("test", char *: 1);<br>
  const int i = 12;<br>
  _Generic(i, int: 1);<br>
<br>
This patch fixes PR16340.<br>
<span><font color="#888888"><br>
~Aaron<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>