https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100616
--- Comment #1 from wang ivor <amorvincitomnia.iw at gmail dot com> --- Seems like the same bug happens whenever you use a class template with a non-type template argument in two modules with dependency. This seems to be a pretty serious bug that renders non-type template argument basically unusable inside modules.