[llvm-dev] Using C++14 code in LLVM

Bruce Hoult via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 31 14:30:19 PDT 2017


On Tue, Oct 31, 2017 at 11:57 PM, Zachary Turner via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> First, it seems like if we want to enable C++14 we need GCC >= 5.
> And if we want to enable C++17 we need GCC >= 7.
>

7.1's been out since May, and 7.2 since August. Ought to be stable.


With that out of the way, here were some of the issues that were raised
> last time:
>
> Issue: Ubuntu 14.04 LTS is on GCC 4.8.x, and we have to support it until
> end of life.
> Resolution: LTS is right around the corner, in 6 more months.
>

I don't understand the issue here.

Sure it's rude to replace the system compiler, in case something three
years old that should build suddenly doesn't.

But that's absolutely no reason to not build a newer version in a user's
working directory and use it from there. Tons of projects do that.

I believe even gcc 7.2 only needs a C++98 compiler in order to build.


Issue: Various other platforms have older GCCs as their system compiler,
> and it's annoying to upgrade.
> Question: Do any of these not have a port you can install?  For example,
> NetBSD 7 appears to have GCC 5.3 as a port, if DistroWatch is any
> indication.  It could be wrong though and I could also be misinterpreting
> it.
>

Same comment.


Issue: If we're going to make people bootstrap a compiler, we might as well
> go all the way to C++17.
> Comment: I'm not opposed.
>

Seems reasonable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171101/ac908af1/attachment.html>


More information about the llvm-dev mailing list