================
@@ -1518,7 +1526,7 @@ NamedDecl *Sema::ActOnNonTypeTemplateParameter(Scope *S, 
Declarator &D,
 
   QualType T = CheckNonTypeTemplateParameterType(TInfo, D.getIdentifierLoc());
   if (T.isNull()) {
-    T = Context.IntTy; // Recover with an 'int' type.
+    T = TInfo->getType();
----------------
mizvekov wrote:

In what sort of context does this matter? Does the effect of this show up in 
any test?

Is it possible we might recover with something strange which will have weird 
effects or crash later, like undeduced auto?

https://github.com/llvm/llvm-project/pull/132189
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to