From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 84E1A3853810; Wed, 26 Oct 2022 07:31:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84E1A3853810 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666769501; bh=eQnXT0ekoycxTvmXvBJ8s84rYwSeixV9EkS8q8IBXoA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QS0nGkS08jpU60FZmqDB9AbzFLm7e/eqfa3PH+yymcew1L+fjeduo5tVt4MF+/JAN S02lYhuknR1Gi3F1ytS8TLb1DbT9NfOFEWcUY0gxxwcAWi28znsb0op8RUGabSfGwv fcNX95Sw4VavVk2jI3Zgkf1R0ZqWnkQf7POsvwmo= From: "jirislaby at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107405] enums can be wrongly long in gcc-13 (in gnu99) Date: Wed, 26 Oct 2022 07:31:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jirislaby at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107405 --- Comment #5 from Jiri Slaby --- (In reply to Jiri Slaby from comment #4) > Also sizeof of that enum > (if one gives it a name) is 8 with gcc-13. That is not allowed by the > standard, IMO. I'm correcting myself, this was always the case and is not new in 13. With -pedantic, I can see at last: x.c:3:13: warning: ISO C restricts enumerator values to range of =E2=80=98i= nt=E2=80=99 [-Wpedantic]=