https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99185
--- Comment #5 from kal.conley at dectris dot com --- I don't think this has anything to do with C++20. The behavior doesn't change when compiling for C++17. In any case, `g` should be static initialized with zeros and no dynamic initialization in `a.cc` should take place.