https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98893
Nathaniel Shead <nshead at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nshead at gcc dot gnu.org --- Comment #2 from Nathaniel Shead <nshead at gcc dot gnu.org> --- Here's a small testcase for this issue: // test.h struct S { ~S() {} }; inline void foo() { static S a[1]; } // main.cpp import "f.h"; static S b[1]; int main() { foo(); } Attempting to assemble with e.g. 'g++ -fmodules -c test.h main.cpp' gives: /tmp/ccTPPCTU.s: Assembler messages: /tmp/ccTPPCTU.s:113: Error: symbol `__tcf_0' is already defined /tmp/ccTPPCTU.s: Error: .size expression for __tcf_0 does not evaluate to a constant