From: Michael Matz <matz@suse.de>
To: Florian Weimer <fweimer@redhat.com>
Cc: gcc@gcc.gnu.org
Subject: Re: Local type inference with auto is in C2X
Date: Thu, 3 Nov 2022 15:19:25 +0000 (UTC) [thread overview]
Message-ID: <alpine.LSU.2.20.2211031421230.29399@wotan.suse.de> (raw)
In-Reply-To: <87zgd8fhn4.fsf@oldenburg.str.redhat.com>
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.
next prev parent reply other threads:[~2022-11-03 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-03 10:37 Florian Weimer
2022-11-03 15:19 ` Michael Matz [this message]
2022-11-04 14:16 ` David Brown
2022-11-03 18:04 ` Joseph Myers
2022-11-03 18:33 ` Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LSU.2.20.2211031421230.29399@wotan.suse.de \
--to=matz@suse.de \
--cc=fweimer@redhat.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).