https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48396
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 51462 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51462&action=edit patch to allow redeclaration in module This isn't a proper fix, but may let you make progress with modularization.