From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1F2B438582B0; Fri, 24 Feb 2023 02:12:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F2B438582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677204759; bh=yBs4Xj+EvLVmdDJFnxeKHXYjx1mtjs9F69gLs/1c/fw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fuInAk4n4dlrFfHqvVc67LsjPlIDaliq6oVKSaipPdPusA/T8PkLZ+hvB7YFVMh1g UsR45qmJRpTZUOR7H6uqVfC0Jx1IhwCXWn9D5co2pRom82EKVOqBZEIHRXT10Nu1Wg +YhP+5PC8KV0FXvuP3M/E2hJ4FmAwbOokPM7uCh4= From: "ibuclaw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin Date: Fri, 24 Feb 2023 02:12:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ibuclaw at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: 13.0 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=3D106977 --- Comment #22 from ibuclaw at gcc dot gnu.org --- (In reply to ibuclaw from comment #21) > There is something about the Darwin ABI I'm just not getting from looking= at > the front-end alone though: Taken from a test Iain had sent me, and I've subsequently modified. ``` struct Visibility { enum Kind { undefined, none, private_, package_, protected_, public_, export_ }; Kind kind; void *pkg; }; class Bar { public: int x; virtual Visibility vis (); }; Visibility Bar::vis () { return Visibility (); } class Foo : public Bar { public: Visibility v; int y; Visibility vis () override final; }; Visibility Foo::vis () { return v; } int test (Bar *foo) { Visibility vis; vis =3D foo->vis (); return vis.kind; } ```=