From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E797385828C; Mon, 24 Oct 2022 18:43:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E797385828C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666637001; bh=JcYtL53KTE9EVoSm1EKxdHL5ZqrsZqf+kQ/X5C5ePME=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FbG5KrF3ASCKzqY1IVQh1sPKRhxLP2zZPCM62jVzRjhMjJSFR+woZyoTu0slg7QR2 owdFU3pH9Y1j+AZ1huJ++YE6Cl0OUyMAKz5kPeAjR6s+MCB8vhUH4oEM40AOp1pwBa Gh/sqymQLbXKmjG1CMEuPfhBWXsQAhutLFHVwSUc= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/16186] gcc should have an option to warn about enumerations with duplicate values Date: Mon, 24 Oct 2022 18:43:13 +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: 4.0.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: marxin at gcc dot gnu.org 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=3D16186 --- Comment #4 from Martin Li=C5=A1ka --- (In reply to Marek Polacek from comment #3) > FWIW, Clang implements this warning: Oh, I was unable to find the option (only tried -Werror and -Wextra). @Marek: please add it!=