[PATCH] D84140: [clang] Set the error-bit for ill-formed semantic InitListExpr.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 20 01:02:10 PDT 2020


sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Sema/SemaInit.cpp:965
   }
+  if (hadError && FullyStructuredList)
+    FullyStructuredList->markError();
----------------
Can we have a clang test for this? If nothing else, an AST-dump test should be able to capture this, right?

If we can turn it into a real clang crash, we may be able to get this on the release branch.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84140/new/

https://reviews.llvm.org/D84140





More information about the cfe-commits mailing list