From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E1DAF386F809; Thu, 21 Dec 2023 21:49:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1DAF386F809 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703195342; bh=eCEc8OFy54gUp+V3TAiGtaedTyeBw0Taznk/ykf/6aY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ka/7tUTCVgajdmmnwbhhsn0pf3bhvHYBLaQjK5mtpufZRfciB0nFa0pHA0BZxw+uv TdelrpvpjM0a0xCWb/6/+nbSoGyWEspkdHzAFmp0jiK6zoK8njrLdt+SpOFNLlFZCk Nd9GH4ZM8Pl//Q7nChof4LVpLbcTORUcE7SxN6Xo= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113099] locale without RTTI uses dynamic_cast before gcc 13.2 or has ODR violation since gcc 13.2 Date: Thu, 21 Dec 2023 21:49:01 +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: 11.4.0 X-Bugzilla-Keywords: ABI, documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D113099 --- Comment #2 from Jonathan Wakely --- It's mostly OK to mix code with -frtti and -fno-rtti, but sometimes it bites you. The crash with older releases seems like __dynamic_cast should gracefully handle missing RTTI and just fail, not segfault. The ODR violation in current releaes is a non-issue. The code has the same semantics either way.=