<div dir="ltr">Hello everyone,<div><br></div><div>I am new here and in fact not subscribed, I just have a question and don't even know if I am at the right address.</div><div><br></div><div>We recently found a bug in our product code when building with NDK Clang for Android and it is related to the LLVM libcxx. It is fairly easy to reproduce and a quick internet search reveals that we are not the only ones with this or a similar issue.</div><div><br></div><div>What we did, was</div><div><font face="monospace">#define hash #</font></div><div><br></div><div>before</div><div><font face="monospace">#include <math.h></font></div><div><br></div><div>which let to a problem with libcxx/include/type_traits:417  <br></div><div><code><span class="gmail-k">template</span> <span class="gmail-o"><</span><span class="gmail-k">class</span> <span class="gmail-nc">_Tp</span><span class="gmail-p">></span> <span class="gmail-k">struct</span> <span class="gmail-nc">_LIBCPP_TEMPLATE_VIS</span> <span class="gmail-n">hash</span><span class="gmail-p">;</span></code> <br></div><div><br></div><div>of course. We obviously shouldn't let defines leak into the stdlib, so it is our fault, we fixed it simply by renaming the define.</div><div><br></div><div>I didn't want to post it as a bug in the LLVM bugtracker, because I don't even think it needs fixing on LLVM side. I just wanted to make aware that this issue exists for some people and wanted to ask if there is a way to publicly document this issue somewhere, so people having problems with this can potentially find a solution on the internet.</div><div><br></div><div>Best regards,</div><div>O. Major</div><div><br></div></div>