From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C8A13858CDB; Thu, 5 Oct 2023 17:48:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C8A13858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696528118; bh=mxvf5vpxrQpNVUAjcSJqMqK8od6O+7c2rHbV+ZReo8w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a7v0hd0e7h/hi1AfDr9+WmsUycfMxmTkMeNe6lcqcSvp1/hLeCHZi3sJebgbCBkRP Oc4mysIBL/f8v7Icwx3M78qZAOh7XVrTqqqq/56rvTJ26B3dbnzESAE+v2CTB774GK 7K4ZR1YremzlzoPxdr4bmIbnoThiIEYqq5t3/SA0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/92798] -fshort-enums can break iterators of std::map Date: Thu, 05 Oct 2023 17:48:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D92798 --- Comment #5 from Andrew Pinski --- (In reply to Joseph Tilahun from comment #4) > Is there a reason why the _Rb_tree_color > enum does not have an explicit underlying type? Yes because it has to work with C++98 while enums with underlying types was only added for C++11. Again -fshort-enums changes the ABI so you can't use that option unless you compile everything with it.=