<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 13 February 2013 14:10, Iain Buclaw <span dir="ltr"><<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</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"><div><div class="h5"><div class="gmail_extra"><div class="gmail_quote">On 13 February 2013 13:26, Johannes Pfau <span dir="ltr"><<a href="mailto:nospam@example.com" target="_blank">nospam@example.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Tue, 12 Feb 2013 18:16:31 +0000<br>
schrieb Iain Buclaw <<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a>>:<br>
<div><br>
> TREE_ADDRESSABLE should be sufficient.  I can't think any reason off<br>
> the top of my head why not.<br>
><br>
<br>
</div>maybe TREE_ADDRESSABLE is too strong: It generates errors in the<br>
backend if the frontend produces non-lvalues:<br>
---<br>
    auto b = Date();<br>
    a(b);<br>
---<br>
<br>
works, but<br>
---<br>
    a(Date());<br>
---<br>
<br>
fails in gimplify.c. Do we really have to rewrite such cases so that<br>
non-PODs get a temporary variable? And how would this be done? It seems<br>
we would have to use the frontend for this, as maybeMakeTemp  and<br>
makeTemp refuse to work for TREE_ADDRESSABLE types.<br>
</blockquote></div><br></div></div></div><div class="gmail_extra">Don't set it on the variable, set it on the type.<br><br></div><div class="gmail_extra">TypeStruct::toCtype()<br>{<br>    TYPE_ADDRESSABLE(ctype) = !isPOD();<br>
</div></div></blockquote><div><br><br></div><div>TREE_ADDRESSABLE (ctype) = !sym->isPOD()   even :-)<br></div></div><br><br>Regards<br>-- <br>Iain Buclaw<br><br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>