<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 6, 2017 at 4:08 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.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 class="gmail_extra"><div class="gmail_quote"><span class="">On Fri, Oct 6, 2017 at 2:50 PM, Xinliang David Li <span dir="ltr"><<a href="mailto:davidxl@google.com" target="_blank">davidxl@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="m_2886238593980670354gmail-">On Fri, Oct 6, 2017 at 2:20 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">This appears to have caused a bootstrap failure on Windows:<div><a href="http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/6884" target="_blank">http://lab.llvm.org:8011/build<wbr>ers/clang-x64-ninja-win7/build<wbr>s/6884</a><br></div><div><a href="http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/7611" target="_blank">http://lab.llvm.org:8011/build<wbr>ers/clang-x86-windows-msvc2015<wbr>/builds/7611</a><br></div><div><br></div><div>I am going to revert and try to reproduce. It looks like clang ends up emitting an error on valid code.</div></div></blockquote><div><br></div></span><div>Please help with the reproducible -- it will be hard for me to get a repro on windows.</div></div></div></div></blockquote><div><br></div></span><div>Can you build clang with your patch and try to compile this code?</div><div><br></div><div>char *f(char *p, int i) {<br></div><div>  return p + i;</div><div>}</div><div><br></div><div>If clang says:</div><div>t.c:2:12: error: invalid operands to binary expression ('char *' and 'int')</div><div>  return p + i;</div><div>         ~ ^ ~</div><div>1 error generated. </div><div><br></div><div>Then you have the miscompile locally and it doesn't require Windows.</div></div></div></div>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">How is the self build compiler built? I have one built with RelWithDebInfo, and that compiler compiles this case fine without an error.</div><div class="gmail_extra"><br></div><div class="gmail_extra">David</div></div>