[PATCH] D80221: [AST][RecoveryExpr] Make DeduceAutoType fail if the auto is deduced from recovery exprs.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 28 09:50:25 PDT 2020
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/Sema/SemaTemplateDeduction.cpp:4658
bool IgnoreConstraints) {
+ // FIXME: continue the following steps if the type is known.
+ if (Init->containsErrors())
----------------
it's not clear to me what "if the type is known" means precisely.
If it's just a matter of checking some condition and continuing, presumably we'd do that already. as is, the FIXME doesn't seem actionable.
================
Comment at: clang/test/AST/ast-dump-invalid-auto-return-funcs.cpp:3
+
+// CHECK: FunctionDecl {{.*}} s1 'auto ()'
+auto s1(); // valid
----------------
maybe add a comment/FIXME about why we're finding int as the return type?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80221/new/
https://reviews.llvm.org/D80221
More information about the cfe-commits
mailing list