<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 22, 2015 at 8:54 PM, Jack Howarth <span dir="ltr"><<a href="mailto:howarth.mailing.lists@gmail.com" target="_blank">howarth.mailing.lists@gmail.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">    Can one of the libc++ experts take a peak at...<br><br><a href="https://llvm.org/bugs/show_bug.cgi?id=23307" target="_blank">https://llvm.org/bugs/show_bug.cgi?id=23307</a><br><br>I am unclear why clang++ with libstdc++ tolerates the following code from rstudio 0.98.1103...<br><br>const char* const MAGIC_GUID = "12861c30b10411e1afa60800200c9a66";<br>const char* const FIGURE_DIR = "figure-compile-notebook-12861c30b";<br><br>bool okToGenerateFile(const FilePath& rmdPath,<br>                      const std::string& extension,<br>                      std::string* pErrMsg)<br>{<br>   FilePath filePath = rmdPath.parent().complete(<br>                                    rmdPath.stem() + extension);<br><br>   if (filePath.exists())<br>   {<br>      boost::shared_ptr<std::istream> pStr;<br>      Error error = filePath.open_r(&pStr);<br>      if (error)<br>      {<br>         *pErrMsg = "Error opening file: " + error.summary();<br>         return false;<br>      }<br><br>      std::string magicGuid(MAGIC_GUID);<br>      std::istreambuf_iterator<char> eod;<br>      if (eod == std::search(std::istreambuf_iterator<char>(*pStr),<br>                             eod,<br>                             magicGuid.begin(),<br>                             magicGuid.end()))<br><br>but clang++ with libc++ errors on the above if statement as...</div><div dir="ltr"><br></div></blockquote><div><br></div><div>I've reported this bug to the libstdc++ maintainers...</div><div><br></div><div>-- Marshall </div></div><br></div></div>