================ @@ -2850,7 +2870,8 @@ Parser::ParseParenExpression(ParenParseOption &ExprType, bool stopIfCastExpr, isFoldOperator(NextToken().getKind())) { ExprType = ParenParseOption::FoldExpr; return ParseFoldExpression(ExprResult(), T); - } else if (isTypeCast) { + } else if (CorrectionBehavior == TypoCorrectionTypeBehavior::AllowTypes) { + // FIXME: This should not be predicated on typo correction behavior. ---------------- Sirraide wrote:
Not surprised that that happened given the name of the enum... https://github.com/llvm/llvm-project/pull/146394 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits