From nobody Tue Aug 08 22:29:22 2023 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RL7CW3mfgz4qBB7 for ; Tue, 8 Aug 2023 22:29:27 +0000 (UTC) (envelope-from cmt@burggraben.net) Received: from smtp.burggraben.net (smtp.burggraben.net [IPv6:2a01:4f8:140:510a::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.burggraben.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RL7CW17JSz3D5k; Tue, 8 Aug 2023 22:29:27 +0000 (UTC) (envelope-from cmt@burggraben.net) Authentication-Results: mx1.freebsd.org; none Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "R3" (not verified)) by smtp.burggraben.net (Postfix) with ESMTPS id 8D500C00312; Wed, 9 Aug 2023 00:29:22 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id 4F5F23AB04; Wed, 9 Aug 2023 00:29:22 +0200 (CEST) Date: Wed, 9 Aug 2023 00:29:22 +0200 From: Christoph Moench-Tegeder To: Dimitry Andric Cc: Mark Millard , toolchain@freebsd.org Subject: Re: c++: dynamic_cast woes Message-ID: References: <6B6A7C9C-8F82-443D-BBC3-B2263FEAFD79@FreeBSD.org> List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6B6A7C9C-8F82-443D-BBC3-B2263FEAFD79@FreeBSD.org> User-Agent: Mutt/2.2.10 (2023-03-25) X-Rspamd-Queue-Id: 4RL7CW17JSz3D5k X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE] ## Dimitry Andric (dim@FreeBSD.org): > Yes, this is a typical problem when type info is replicated across > dynamic library boundaries. The best thing to prevent this is to > ensure that the key functions for a class (typically constructors > and destructors) are only in one translation unit (object file), > and that object file is only in one .so file. As FreeBSD is basically unsupported from upstream, this sounds like I'm in for quite a bit of fun here. Well. Thanks anyways, Christoph -- Spare Space