From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 913033858D3C for ; Mon, 2 May 2022 15:42:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 913033858D3C Received: by mail-wm1-x32f.google.com with SMTP id m2-20020a1ca302000000b003943bc63f98so1561049wme.4 for ; Mon, 02 May 2022 08:42:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=inLbXRpbM3RxNakUjy/+Mg3IflaI/hxz8wJ1KBiyax8=; b=2rVx+ehZWGSwvdXf21umMrgQBX09XyCN0+BWyMQRTIcwVUGB5McDBp1WwVuU9wGPp7 +qJF4z5+qXc5Qz1wUjUvERgwyYqs3be5f5nSdNgPIspwlulUOdU/FNb4+vV7dqLyTdQH nC2vSnH6ahL6T114YgvuRCvXvmml8LZwwcxuGbFXUYP/3nGfFLEiIbIfG2bEsMkMGLrw ifmtD4xmu2+oSXQB608ijAcCWV0EYOp29dG62QHt90VOocB2mpjGmEzPvvu0OZRminF/ 8Qo4UHM7QqT0e/KMuW3FD+MAJNRE9vPV8jPZLKRycjvdfHwk/yj7O0vvrJmqJJ0JWIzy H/NA== X-Gm-Message-State: AOAM531AgHoVNakNKTe0+HeT8y/vwPUU7847hatAseHHDjQag401AwFh ohTNN/NDTbVMFf4UhA02Zng0LafgFpCUBIByosvKmSKh X-Google-Smtp-Source: ABdhPJwoB24qMiK215DDrQ763d7VVz9hIRKjnBbkT2IwFNBgk3JK4dVjCb4wcjaq9wT00jYwP/GZ5FTDB4gvvPPWt4w= X-Received: by 2002:a05:600c:1991:b0:393:ef28:7ab2 with SMTP id t17-20020a05600c199100b00393ef287ab2mr15630692wmq.20.1651506156993; Mon, 02 May 2022 08:42:36 -0700 (PDT) MIME-Version: 1.0 References: <6b76a0f7-df1d-934-b77c-6b89f11a6594@hippo.saclay.inria.fr> In-Reply-To: <6b76a0f7-df1d-934-b77c-6b89f11a6594@hippo.saclay.inria.fr> From: Jonathan Wakely Date: Mon, 2 May 2022 16:42:24 +0100 Message-ID: Subject: Re: GCC 12.1 Release Candidate available from gcc.gnu.org To: "gcc@gcc.gnu.org" Cc: Boris Kolpackov , Marc Glisse X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2022 15:42:40 -0000 On Mon, 2 May 2022, 13:26 Marc Glisse via Gcc, wrote: > On Mon, 2 May 2022, Boris Kolpackov wrote: > > > Jakub Jelinek writes: > > > >> The first release candidate for GCC 12.1 is available [...] > > > > There is an unfixed bogus warning that is a regression in 12 > > and that I think will have a pretty wide effect (any code > > that assigns/appends a 1-char string literal to std::string): > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 > > > > For example, in my relatively small codebase I had about 20 > > instances of this warning. Seeing that it's enabled as part > > of -Wall (not just -Wextra), I believe there will be a lot > > of grumpy users. > > > > There is a proposed work around in this (duplicate) bug that > > looks pretty simple: > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104336 > > > > Perhaps it makes sense to consider it? > > Please no, that workaround looks like a fragile hack (basically writing > a+b-a to obfuscate b) that may break if you look at it sideways and likely > makes the generated code a bit worse. Agreed. And it makes the variable names completely misleading (although that would be easy to fix).