From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 94B593858D33; Sun, 18 Jun 2023 18:02:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94B593858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687111358; bh=pCbkjY54k1V3TWVG1Q3sIQI9ISJQaAnWjGSdnnlKQ9I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yntUY80k3pnHqAB1ibChvkaDyknSlq2K1/dWwfYq9GetgpdRazzaNXol4BE7Q42VO Nxp739P+KbmCMrGQw14QXyoGw+kBZmCINLNKfsHhhT0r9w/c3FFUDxQ+6ENR0gAMCG ji1QdH5SEQzG3C13mO12yRH5vlv4wLvQOYNV6Koc= From: "gnu.w2nnu at simplelogin dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105512] compilation with -fmodules-ts and std=c++20 leads to segfault Date: Sun, 18 Jun 2023 18:02:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gnu.w2nnu at simplelogin dot com 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: cc 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=3D105512 David Truby changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gnu.w2nnu at simplelogin d= ot com --- Comment #1 from David Truby --- I also see this issue and have a reproducer here: ---- main.cpp #include #include import test; int main() { std::cout << tester(); } ---- test.cpp module;=20 #include export module test; export std::string tester() { return "hello world\n"; } ---- Interestingly the issue also goes away if -D_GLIBCXX_USE_CXX11_ABI=3D0 is p= assed to both TUs so I suspect there's an issue with the module file not exporting the correct ABI for `std::string`=