https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114600
--- Comment #15 from m.cencora at gmail dot com --- Thanks! Unfortunately it seems that your changes broke reexporting of types declared in other module. It works fine on gcc-14. $ cat base.cpp module; #include <cstdint> export module base; export { using ::int8_t; } export namespace std { using std::int8_t; } $ cat std.cpp module; export module std; import base; export namespace std { using std::int8_t; } $ g++ -fmodules-ts base.cpp std.cpp std.cpp:9:16: error: ‘typedef __int8_t@base int8_t@base’ conflicts with a previous declaration 9 | using std::int8_t; | ^~~~~~ ‘ ‘lang_*’ check: failed in dump_decl, at cp/error.cc:1424 0x78cebc lang_check_failed(char const*, int, char const*) ../../gcc/cp/tree.cc:6306 0x9ce4e6 dump_decl ../../gcc/cp/error.cc:1424 0x9d993e decl_to_string ../../gcc/cp/error.cc:3324 0x9d993e cp_printer ../../gcc/cp/error.cc:4497 0x26eb792 pretty_printer::format(text_info*, urlifier const*) ../../gcc/pretty-print.cc:1775 0x26c240d pp_format(pretty_printer*, text_info*, urlifier const*) ../../gcc/pretty-print.h:575 0x26c240d diagnostic_context::report_diagnostic(diagnostic_info*) ../../gcc/diagnostic.cc:1612 0x26c2726 diagnostic_impl ../../gcc/diagnostic.cc:1775 0x26c6d0d inform(unsigned int, char const*, ...) ../../gcc/diagnostic.cc:1866 0xa7a29b do_nonmember_using_decl ../../gcc/cp/name-lookup.cc:5311 0xa90727 finish_nonmember_using_decl(tree_node*, tree_node*) ../../gcc/cp/name-lookup.cc:6695 0xa96b04 finish_using_decl ../../gcc/cp/parser.cc:22388 0xaf4693 cp_parser_using_declaration ../../gcc/cp/parser.cc:22552 0xafb370 cp_parser_declaration ../../gcc/cp/parser.cc:15715 0xafab57 cp_parser_declaration_seq_opt ../../gcc/cp/parser.cc:15449 0xafadfc cp_parser_namespace_body ../../gcc/cp/parser.cc:22297 0xafadfc cp_parser_namespace_definition ../../gcc/cp/parser.cc:22275 0xafb110 cp_parser_declaration ../../gcc/cp/parser.cc:15699 0xafb309 cp_parser_module_export ../../gcc/cp/parser.cc:15355 0xafb309 cp_parser_declaration ../../gcc/cp/parser.cc:15655