<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 1, 2016 at 11:46 PM Joerg Sonnenberger via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Oct 02, 2016 at 05:33:40AM +0000, Zachary Turner via llvm-dev wrote:<br class="gmail_msg">
> While GCC doesn't claim to "fully" support C++14 until 5.2 (which is only<br class="gmail_msg">
> about 1 year old), you can get all of the above features with GCC 4.9<br class="gmail_msg">
<br class="gmail_msg">
I do care quite a bit about GCC 4.8 support, since that's what is<br class="gmail_msg">
shipped with NetBSD 7.<br class="gmail_msg">
<br class="gmail_msg">
> One potentially added benefit of this is that GCC supports <regex> in 4.9.<br class="gmail_msg">
> This might allow us to kill of llvm::Regex in favor of standardizing on<br class="gmail_msg">
> std::regex, as GCC is currently the only supported compiler without a regex<br class="gmail_msg">
> implementation.<br class="gmail_msg">
<br class="gmail_msg">
If that is the only argument, we should be able to reuse the libc++<br class="gmail_msg">
implementation without too much trouble?<br class="gmail_msg"></blockquote><div><br></div><div>That wasn't even the main argument :)  The main argument was the ability to use C++14 in the upstream.  I suspect that we won't want to be tied to C++11 indefinitely though.  LLVM already has a section called "Getting a modern host C++ toolchain" for distros with older GCC's.  In theory this could just be bumped from "older than GCC 4.7" to "older than GCC 4.9".  I admit I don't know much (i.e. anything) about NetBSD.  But a quick look at the release history says that even NetBSD 8 (which isn't even stable yet), is still only going to have GCC 4.8.  So if we're going to be held back by this, we're looking at 2-4 years before we can use C++14 upstream.  Just food for thought.</div><div><br></div><div>That said, will the libc++ implementation work with MSVC?  I don't know, but I seriously doubt it. </div></div></div>