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

I'm not sure I understand it, but did you mean to move the checking to the Sema 
despite it relying on the constraint expression having been parsed?

https://github.com/llvm/llvm-project/pull/111179
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to