From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119836 invoked by alias); 27 Sep 2019 00:17:19 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 119823 invoked by uid 89); 27 Sep 2019 00:17:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=H*r:906, H*r:a17, HX-HELO:sk:mail-ed, H*r:sk:mail-ed X-HELO: mail-ed1-f47.google.com Received: from mail-ed1-f47.google.com (HELO mail-ed1-f47.google.com) (209.85.208.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Sep 2019 00:17:18 +0000 Received: by mail-ed1-f47.google.com with SMTP id r4so814858edy.4 for ; Thu, 26 Sep 2019 17:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gwmail-gwu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lyJJ32zHJVBhgoKByfvRQ9SUuZmyjLZrshf2gDJJOc4=; b=CDdY+N1d/nwfmW1tcg7Y3DcSRycbIV340V0rpVbAqDfE1ftPQpkzG1H1fXePmBznLc omno/SPgz+XtlDILYkJWXyIwuivzwQ/DVY/JDhG6ts+HhWvm7kFQ59PPWFysXNXSzgU3 0Ks9fa0rMh1NIUSK3HN6BuqJiyzipdjaTqBxejCZumbW0XS7JHa2Dp5AeBZUfusD3iUF DY4ab/J5z6KlxBRWz8JD/hFLKuChAq7I4HkapMBAtm0G5aFNNj4BC7+/fu9kRHnCwTI1 zuNgfWldARYOwzfdU8frvLN5CMgiLM1ToyMmBfYugFXKmhQ0ZJ21l2zi21mUd+lzDtzN gRVA== MIME-Version: 1.0 Received: by 2002:a17:906:b78f:0:0:0:0 with HTTP; Thu, 26 Sep 2019 17:17:14 -0700 (PDT) In-Reply-To: <5dfb5453-8dee-5e12-c24d-0e1e81f40501@gmail.com> References: <5dfb5453-8dee-5e12-c24d-0e1e81f40501@gmail.com> From: Eric Gallager Date: Fri, 27 Sep 2019 00:17:00 -0000 Message-ID: Subject: Re: Moving to C++11 To: Nicholas Krause Cc: gcc Mailing List Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00247.txt.bz2 On 9/26/19, Nicholas Krause 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.