https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114600

--- Comment #12 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to m.cencora from comment #10)
> Created attachment 57924 [details]
> Full "std' modules with workarounds
> 
> Here is an improved version of "std" module, with workarounds for:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114683
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114685

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 <bits/stdc++.h>;

$ 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 <bits/stdc++.h> header module, but
should otherwise just work.

Reply via email to