This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++17 by default in gcc-8
- From: Allan Sandfeld Jensen <linux at carewolf dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Egor Pugin <egor dot pugin at gmail dot com>
- Date: Sun, 26 Mar 2017 18:29:20 +0200
- Subject: Re: C++17 by default in gcc-8
- Authentication-results: sourceware.org; auth=none
- References: <CAHtU+mo+=bez0u-+hasgK5FyN6+P1U3L8z2zZAgM-gMyDwfXmw@mail.gmail.com>
On Sunday 26 March 2017, Egor Pugin wrote:
> Hi,
>
> It's a bit early question, but still.
> C++ releases became more predictive and regular.
> What do you think about settings -std=c++17 (or gnu++17) for gcc-8 as
> default c++ mode?
> What is your policy regarding default c++ standards in gcc?
It would make sense in it being the second release with full c++17 support, so
we could expect the support to be mature in gcc 8. I am a little sceptical
personally though, because I just recently got burned by a C++17 change, where
a number of uses of functor classes broke because pointers to functions with
noexcept is now a separate type. So code that worked with C++14 is now illegal
in C++17 and requires doubling the number of specialized functor templates,
and still isn't fully source compatible with C++14 (though all nice clean code
will be compatible)
Best regards
`Allan