================ @@ -688,10 +688,7 @@ DeduceTemplateSpecArguments(Sema &S, TemplateParameterList *TemplateParams, // FIXME: To preserve sugar, the TST needs to carry sugared resolved // arguments. - ArrayRef<TemplateArgument> PResolved = - TP->getCanonicalTypeInternal() - ->castAs<TemplateSpecializationType>() - ->template_arguments(); + ArrayRef<TemplateArgument> PResolved = TP->template_arguments(); ---------------- ilya-biryukov wrote:
Here's where we are loosing `fields` because there are not part of the canonical type. https://github.com/llvm/llvm-project/pull/100144 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits