<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 4 October 2013 20:09, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I noticed that gcc produces alias when compiling<br>
<br>
void g();<br>
template<typename T><br>
struct foobar {<br>
  foobar() {<br>
    g();<br>
  }<br>
};<br>
foobar<void> x;<br>
<br>
To do the same in clang (patch to go in a sec) we have to allow<br>
linkonce_odr aliases in llvm. The attached patch does that.<br></blockquote><div><br></div></div>Sorry -- I don't yet understand the motivation. What alias does it produce? My gcc 4.8.1 doesn't produce an alias on this code on x86-64 linux at -O0.<br>

<br>Nick<br></div></div>