https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90916
--- Comment #4 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:a5a3c2dcf73aa245b0eb6f6cf56c4d03ab6056da commit r10-5948-ga5a3c2dcf73aa245b0eb6f6cf56c4d03ab6056da Author: Nathan Sidwell <nath...@fb.com> Date: Tue Jan 14 11:12:40 2020 -0800 [PR90916] ICE in retrieve specialization https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00809.html PR c++/90916 * pt.c (retrieve_specialization): Get the TI from the decl or the classtype as appropriate.