https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120635

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 64980
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64980&action=edit
gcc17-pr120635.patch

WIP.  Unfortunately, it seems to work only for variable templates so far,
during register_specialization the class and function template partial or full
specializations aren't marked as DECL_TEMPLATE_SPECIALIZATION (spec) yet, and
they don't even have proper DECL_SOURCE_LOCATION (have it of the primary
template).  Plus further test coverage is needed as well.

Reply via email to