From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 75F5D3858C20; Sun, 24 Dec 2023 14:46:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75F5D3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703429201; bh=tN+H98sdcvXJiaHwpa74VoO3syTpqDGqcpXzf4INOf4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Z7Hx8vuk4tAJnzcz4UXmER3Opc8O7qK9AyKexfXis2Sizny5tg2INybc2G1XPyEOc G8/a0hCl4j1AjxhqemNgytMj//9024ltdHLHFxyJJZiq0TjF46F0jT8s4a860N/+Fb LR4L2lQwV/JarR8K956CgaTYTAmeXqiJ8WDrjAD0= 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: Sun, 24 Dec 2023 14:46:40 +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 #6 from Jonathan Wakely --- (In reply to andysem from comment #3) > I think, a failing dynamic_cast would not be useful as this would make > std::use_facet unusable with -fno-rtti. I don't see a problem with that. If you want to use a polymorphic container= of facets, you need RTTI. The standard facets will work, but it doesn't seem reasonable to expect it to work for program-defined facets. And a std::use_facet that fails seems better than one that segfaults, doesn't it?=