https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99480
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>: https://gcc.gnu.org/g:2bfd081f1bce3fb7f791591e741723dce4e884ed commit r11-7769-g2bfd081f1bce3fb7f791591e741723dce4e884ed Author: Nathan Sidwell <nat...@acm.org> Date: Mon Mar 22 12:35:35 2021 -0700 c++: Cross-module partial specialiations [PR 99480] We were not correctly handling cross-module redeclarations of partial-specializations. They have their own TEMPLATE_DECL, which we need to locate. I had a FIXME there about this case. Guess it's fixed now. PR c++/99480 gcc/cp/ * module.cc (depset::hash::make_dependency): Propagate flags for partial specialization. (module_may_redeclare): Handle partial specialization. gcc/testsuite/ * g++.dg/modules/pr99480_a.H: New. * g++.dg/modules/pr99480_b.H: New.