[PATCH] D64677: [SemaTemplate] Fix uncorrected typos after pack expansion
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 16 03:30:29 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL366200: [SemaTemplate] Fix uncorrected typos after pack expansion (authored by sammccall, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D64677?vs=209631&id=210057#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64677/new/
https://reviews.llvm.org/D64677
Files:
cfe/trunk/lib/Sema/SemaTemplateVariadic.cpp
cfe/trunk/test/SemaTemplate/typo-variadic.cpp
Index: cfe/trunk/lib/Sema/SemaTemplateVariadic.cpp
===================================================================
--- cfe/trunk/lib/Sema/SemaTemplateVariadic.cpp
+++ cfe/trunk/lib/Sema/SemaTemplateVariadic.cpp
@@ -619,6 +619,7 @@
if (!Pattern->containsUnexpandedParameterPack()) {
Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
<< Pattern->getSourceRange();
+ CorrectDelayedTyposInExpr(Pattern);
return ExprError();
}
Index: cfe/trunk/test/SemaTemplate/typo-variadic.cpp
===================================================================
--- cfe/trunk/test/SemaTemplate/typo-variadic.cpp
+++ cfe/trunk/test/SemaTemplate/typo-variadic.cpp
@@ -0,0 +1,2 @@
+// RUN: %clang_cc1 -fsyntax-only %s -verify
+int x = m(s...); // expected-error{{pack expansion does not}} expected-error{{undeclared identifier}}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64677.210057.patch
Type: text/x-patch
Size: 855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190716/65d8c4c3/attachment.bin>
More information about the cfe-commits
mailing list