public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107314] [13 Regression] New -Wsign-compare since r13-3360-g3b3083a598ca3f4b Date: Wed, 19 Oct 2022 16:58:12 +0000 [thread overview] Message-ID: <bug-107314-4-VONxlu06Px@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107314-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107314 --- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- This is a deliberate change: if any enumerators are outside the range of int, then all enumerators now have the enum type, rather than those outside the range of int having the enum type and those inside the range of int having type int. (The logic to determine the integer type with which the enum type is compatible is unchanged. In the case of this testcase, it produces unsigned int.) While, as noted in the commit message, the change could be made conditional on C2x mode if necessary, I'm doubtful if that would actually help grub; presumably they'd rather change things so they work in C2x mode rather than keeping using an older mode after -std=gnu2x is the default, or postponing the fix until then.
next prev parent reply other threads:[~2022-10-19 16:58 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-19 7:11 [Bug c/107314] New: " marxin at gcc dot gnu.org 2022-10-19 7:25 ` [Bug c/107314] [13 Regression] " rguenth at gcc dot gnu.org 2022-10-19 16:58 ` joseph at codesourcery dot com [this message] 2022-10-20 15:48 ` marxin at gcc dot gnu.org 2022-10-20 15:52 ` pinskia at gcc dot gnu.org 2022-10-20 17:05 ` jsm28 at gcc dot gnu.org
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=bug-107314-4-VONxlu06Px@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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: linkBe 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).