https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98895
cqwrteur <unlvsur at live dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |All Host| |All --- Comment #1 from cqwrteur <unlvsur at live dot com> --- #include<stdio.h> inline void test(char const* str) noexcept { puts(str); } int main() { test("Hello\n"); } hello.cc module; #include<stdio.h> export module hello; export inline void test(char const* str) noexcept { puts(str); } main.cc import hello; int main() { test("Hello\n"); } The 2nd generates a larger binary because it emits dead module entry. Please remove all dead code thank you.