https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104204
--- Comment #2 from Fedor Chelnokov <fchelnokov at gmail dot com> --- Are you sure that this is a duplicate? Bug 39270 is about explicit instantiation that is erroneously reported by GCC as specialization. And this bug is about rejection of real explicit specialization in special circumstances.