From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3D612384B11C; Wed, 24 Apr 2024 13:46:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D612384B11C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713966393; bh=uCtdeSRKhoovk2t2SYp3bEh8WMTiyGlbXpxo4x7qjxw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GcoEifaQeuSrANgt47iT/rBKV2Me6rNKGkM0BIN0BjEvs5StP37AD4kk2lFc5moBM oSbcPRi42ElRCF2PVGqNd0XQWT/847VXDQCpwvWO0CgjkFEqsU/8Ni6F7o3fNUiQBN 1FxmEAu811tOHleOcSNd14yGB0CS0bByhpd87Poc= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114600] [14 Regression] [modules] redefinition errors when using certain std headers in GMF Date: Wed, 24 Apr 2024 13:46:31 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.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=3D114600 --- Comment #12 from Patrick Palka --- (In reply to m.cencora from comment #10) > Created attachment 57924 [details] > Full "std' modules with workarounds >=20 > Here is an improved version of "std" module, with workarounds for: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114683 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114685 Interesting, thanks! IIUC in light of these 'export using' bugs the most robust way to implement= the std module in GCC 14 is probably: $ cat std.C export module std; export import ; $ g++ -fmodules-ts -x c++-system-header bits/stdc++.h -x c++ std.C This has the disadvantage of exposing implementation-detail entities and requiring an additional step to build the header module, but should otherwise just work.=