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

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 7 05:49:46 PDT 2024


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

Oh yes - they're not evaluated either that way.

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


More information about the cfe-commits mailing list