K, last one..... <br><br>Global search and replace in LLVM and Clang for NULL -> nullptr, and a couple of locations where 0 is used instead of a nullptr, makes both compile. <br><br>Apart from the errors I mentioned earlier about the private/public method, and the setjmp related stuff.<br>
<br>Not sure if it compiles with any other compiler now, so I won't be submitting this null->nullptr change, but the other errors might be worth taking... <br><br>Tom.<br><br><br><div class="gmail_quote">On Sat, May 1, 2010 at 10:09 PM, Tom van Dijck <span dir="ltr"><<a href="mailto:llvm@tomvandijck.com">llvm@tomvandijck.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br><br><div class="gmail_quote"><div class="im">On Sat, May 1, 2010 at 10:02 PM, me22 <span dir="ltr"><<a href="http://me22.ca" target="_blank">me22.ca</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>></span> wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>On 2 May 2010 00:53, Tom van Dijck <<a href="mailto:llvm@tomvandijck.com" target="_blank">llvm@tomvandijck.com</a>> wrote:<br>
> The problem seems to be a much larger issue with the Visual Studio 2010 C++<br>
> Compiler and not really related to clang/llvm. The following snippet of code<br>
> does NOT compile in 2010..<br>
><br>
> #include <vector><br>
> int main(int argc, char* argv[])<br>
> {<br>
>     std::pair<int, void*> mypair(0, NULL);<br>
>     return 0;<br>
> }<br>
><br>
<br>
</div>That's perfectly fine -- it never #includes <utility>,<br>
so there's no reason for std::pair to be in scope.<br></blockquote><div> </div></div></div><div class="im">#include <vector><br>int main(int argc, char* 
argv[])<br>{<br></div>
    std::pair<int, void*> mypair(0, (void*)NULL);<div><div></div><div class="h5"><br>
    return 0;<br>}<br><br>compiles fine though...<br>couple people have 
reported the same issue actually, and apparently this is by design due 
to C++0x:<br><br><a href="https://connect.microsoft.com/VisualStudio/feedback/details/520043/error-converting-from-null-to-a-pointer-type-in-std-pair?wa=wsignin1.0#tabs" target="_blank">https://connect.microsoft.com/VisualStudio/feedback/details/520043/error-converting-from-null-to-a-pointer-type-in-std-pair?wa=wsignin1.0#tabs</a><br>

<br></div></div><font color="#888888">Tom.<br>
</font></blockquote></div><br>