From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 9DADD3858C39 for ; Thu, 3 Nov 2022 15:19:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9DADD3858C39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 4036521C9D; Thu, 3 Nov 2022 15:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1667488765; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zaHWqlb0EV12ION88FP5u2cC38q6oZjRpfpH6FKXyt0=; b=z3bcduW6vRUuZQzuwyQTFKrc0diPvBiIY0I34P1MI3HvQOq+08IaJNrGgAAhk3NA3YKTXx Ti1yxMwEbDXyRAqxc0m2Tlv5E65q72eJFLjhJMVgpA7wMUv/ldhlYNRDnH374pSdLpgH+7 yxQ4OnWy95DBJjcgJPaZVGluEP09irs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1667488765; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zaHWqlb0EV12ION88FP5u2cC38q6oZjRpfpH6FKXyt0=; b=egA39bae+Z06PRHIe+/qZy6Mbs6OYAwIaVG5UXvN4dabH0c3qxjGw5q1gh0pOkUyPAB20z vh65MmoDDr88apAw== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 39CC52C141; Thu, 3 Nov 2022 15:19:25 +0000 (UTC) Received: by wotan.suse.de (Postfix, from userid 10510) id 1B99664C0; Thu, 3 Nov 2022 15:19:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by wotan.suse.de (Postfix) with ESMTP id 1AA1B648D; Thu, 3 Nov 2022 15:19:25 +0000 (UTC) Date: Thu, 3 Nov 2022 15:19:25 +0000 (UTC) From: Michael Matz To: Florian Weimer cc: gcc@gcc.gnu.org Subject: Re: Local type inference with auto is in C2X In-Reply-To: <87zgd8fhn4.fsf@oldenburg.str.redhat.com> Message-ID: References: <87zgd8fhn4.fsf@oldenburg.str.redhat.com> User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, On Thu, 3 Nov 2022, Florian Weimer via Gcc wrote: > will not have propagated widely once GCC 13 releases, so rejecting > implicit ints in GCC 13 might be too early. GCC 14 might want to switch > to C23/C24 mode by default, activating auto support, if the standard > comes out in 2023 (which apparently is the plan). > > Then we would go from > warning to changed semantics in a single release. > > Comments? I would argue that changing the default C mode to c23 in the year that comes out (or even a year later) is too aggressive and early. Existing sources are often compiled with defaults, and hence would change semantics, which seems unattractive. New code can instead easily use -std=c23 for a time. E.g. c99/gnu99 (a largish deviation from gnu90) was never default and gnu11 was made default only in 2014. Ciao, Michael.