[clang] [Clang][Parser] Remove the concept from the DeclContext if the definition is invalid (PR #111179)

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 7 04:26:31 PDT 2024


================
@@ -337,6 +343,8 @@ Parser::ParseConceptDefinition(const ParsedTemplateInfo &TemplateInfo,
   ExprResult ConstraintExprResult =
       Actions.CorrectDelayedTyposInExpr(ParseConstraintExpression());
   if (ConstraintExprResult.isInvalid()) {
+    if (AddedToScope)
----------------
cor3ntin wrote:

Can we just mark the decl invalid?

https://github.com/llvm/llvm-project/pull/111179


More information about the cfe-commits mailing list