From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2AE3385481C; Thu, 14 Jan 2021 18:34:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2AE3385481C From: "acsawdey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/98688] C++ modules support does not work on PowerPC with opaque MMA types vector_pair/vector_quad Date: Thu, 14 Jan 2021 18:34:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acsawdey 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2021 18:34:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98688 --- Comment #1 from acsawdey at gcc dot gnu.org --- I don't know if this is the right thing to do, but ignoring the opaque type here make the ICE go away. I suspect I need to construct a module test case using vector_pair/vector_quad to really test this though. diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc index d2093916c9e..3ec0b04def3 100644 --- a/gcc/cp/module.cc +++ b/gcc/cp/module.cc @@ -8831,6 +8831,10 @@ trees_out::type_node (tree type) } break; + case OPAQUE_TYPE: + /* No additional data. */ + break; + case OFFSET_TYPE: tree_node (TYPE_OFFSET_BASETYPE (type)); break;=