<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylksFOxCAQhp-GXiY2lG63y4HD6sbExMSLicfNUGiLsqXpgJt9e9kaY_TiQTKBGYb5-Amjg7koLLt5ZvzA-B7yOB4xxsXpFO3xyMQuG5wtvgETMhu8B2egD2FNSWDtLWsPn-Wfs_7J-_P8y2gnQMDJgAZcLHg3vVkDZybu4fH5CS4hwWAjmDR712G0QJeTDp7V-1_0Eh76tcQRTCFCosyJV_6V6aYBKHWdtYbKwqjayFpigSmOYVEzuRGLtHg1xjhThuf7sw0ujim_KZxy4P3713IzL-HVdjGHjihZyk5TCymKUXV1z6XYbDd623Jd1YhY9dL0ve432Gy7wqO2nhRrbpkQkz3Disg-aw7F_xU4JbgQvKokl01TtaXhcldpgVW760yPkm24PaHz5ZVThmUoFrUidRooJ72jSN9JJHLDZO0qOCuMLvo1uPM4DTd3j3nz78ah69cUq1S16vwAcsjEyw>53292</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang-CL] __attribute__(( weak )) vs LTO
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
psiha
</td>
</tr>
</table>
<pre>
a.cpp
__attribute__(( weak )) void foo() {}
b.cpp
void foo() {}
When a and b are linked w/ LTO you get duplicate symbol: void foo(). If LTO is not used then linking succeeds.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFkMFq5DAMhp_GuYgJidNMxgcf2hkKhcJeCj0OcqxJ3HriENkd5u3XSVmW3UvNjy0h69OPTLB3jWU_z6I6ieoR8jmfMcbFmRTpfBbykAU3wk8QUmXBV3AWLiFsJQWiexLd6bv9-zb_8n78_z7SBAg4WTCAC4F30ydZuAn5DK9vv-AeEgwUwabZux4jAd-vJnjRPP5HL-HlsrU4hilESJw5ceWvTDcNwKnviSyXhdWNVY3CIrroSYv26ehxGnbHV9Geft4Cr3OKtHg9xjhz9pLtZg0ujimvIFxz4v3Xn2c3L-GD-phTx5yIc9A2Usli1AoVktpL2ndkL7i3iqSVTb03FaoDUeHRkOfVo5ByohtsiBxnq4XTspKyqmtVqbatu9JW6lAbiXV36DNOiYeKruh8ufoowzIUi94smTRwLnrHkf8WkdkNE20rWfmY4hgWPbMbsdgG6834bzvNr3M">