https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 112631, which changed state.
Bug 112631 Summary: gcc rejects block-scope declaration of function in a module unit even if the function is attached to the global module fragment https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112631 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED