This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Moving to C++11
- From: Eric Gallager <egall at gwmail dot gwu dot edu>
- To: Nicholas Krause <xerofoify at gmail dot com>
- Cc: gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Thu, 26 Sep 2019 20:17:14 -0400
- Subject: Re: Moving to C++11
- References: <5dfb5453-8dee-5e12-c24d-0e1e81f40501@gmail.com>
On 9/26/19, Nicholas Krause <xerofoify@gmail.com> wrote:
> Greetings,
>
> I asked about moving to C/C++ 11 as it would make it easier to
>
> allow multithreading support due to having a memory model
>
> alongside other features. Jason Merill mentioned due to it
>
> being so common it may be a good time to.
>
> Moving to git seems to be universally agree on so I'm opening the
> discussion
>
> for the same as related to C/C++11 migration and if possible opening
>
> a TODO similar to git if decided on.
>
> Please post your comments or ideas about the migration in response to this
>
> email,
>
> Nick
>
>
A good first step would be to flip the switch from -Wno-narrowing to
-Wnarrowing in the warning flags GCC uses when building, as C++11 has
stricter rules about narrowing conversions. This would be useful even
if we don't end up going to C++11 yet, as such narrowing conversions
are bad even in versions of the standard where they're allowed.