<div dir="ltr">Did we accidentally apply C++11 patches to 3.4.1?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 12, 2014 at 1:57 AM, Armin Steinhoff <span dir="ltr"><<a href="mailto:as@steinhoff-automation.com" target="_blank">as@steinhoff-automation.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
first problem was:<br>
<br>
>FileManager.cpp:311:21: error: range-based ‘for’ loops are not allowed<br>
>in C++98 mode<br>
>for (auto & fe: SeenFileEntries) {<br>
>^<br>
>FileManager.cpp:312:14: error: request for member ‘getValue’ in ‘fe’,<br>
>which is of non-class type ‘int’<br>
>if (fe.getValue() == StaleFileEntry) {<br>
>^<br>
<br>
solved by adding -std=c++11 to Makefile.config<br>
<br>
<br>
Second one:<br>
<br>
Compilation of "SmallPtrSet.cpp" seems to be broken ...<br>
Solved by removing the conditional compile by<br>
<br>
#ifdef LLVM_HAS_RVALUE_REDERENCE for method "SmallPtrSetImplBase"<br>
<br>
Hope it doesn't break anything :)<br>
<br>
<br>
BTW .. is "cling" now integral part of LLVM ?<br>
<br>
Regards<br>
<br>
--Armin<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>