<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Hi,</div><div><br></div><div>I'm submitting a fix for an error in lib/Frontend/CompilerInvokation.cpp where the flag for CXX operator names gets overwritten (it was set by OpenCL, and could be by other languages in the future). </div><div><br></div><div>Patch attached. BTW, I couldn't find a report for it in Bugzilla -- I didn't try to create one though, let me know if I should.</div><div><br></div><div><br></div><div><div><span style="font-family: Courier; "> // OpenCL has some additional defaults.</span></div><div><span style="font-family: Courier; "> if (LangStd == LangStandard::lang_opencl) {</span></div><div><span style="font-family: Courier; "> Opts.OpenCL = 1;</span></div><div><span style="font-family: Courier; "> Opts.AltiVec = 1;</span></div><div><span style="font-family: Courier; "> Opts.CXXOperatorNames = 1;</span></div><div><span style="font-family: Courier; "> Opts.LaxVectorConversions = 1;</span></div><div><span style="font-family: Courier; "> Opts.DefaultFPContract = 1;</span></div><div><span style="font-family: Courier; "> }</span></div><div><span style="font-family: Courier; "><br></span></div><div><font class="Apple-style-span" face="Courier"><div> if (LangStd == LangStandard::lang_cuda)</div><div> Opts.CUDA = 1;</div><div><br></div><div> // OpenCL and C++ both have bool, true, false keywords.</div><div> Opts.Bool = Opts.OpenCL || Opts.CPlusPlus;</div><div><br></div></font></div><div><span class="Apple-style-span" style="font-family: Courier; "> Opts.GNUKeywords = Opts.GNUMode;</span></div><div><span style="font-family: Courier; "> Opts.CXXOperatorNames = Opts.CPlusPlus;</span></div></div><div><br></div><div><div><span style="font-family: Courier; ">-- Section of fix patch --</span></div><div><span class="Apple-style-span" style="font-family: Courier; "><br></span></div><div><span class="Apple-style-span" style="font-family: Courier; "> Opts.GNUKeywords = Opts.GNUMode;</span></div></div><div><span style="font-family: Courier; "><div>- Opts.CXXOperatorNames = Opts.CPlusPlus;</div><div>+ if (Opts.CPlusPlus)</div><div>+ Opts.CXXOperatorNames = 1;</div><div><br></div></span></div></body></html>