================ @@ -2252,7 +2252,7 @@ void Parser::ParseBaseClause(Decl *ClassDecl) { while (true) { // Parse a base-specifier. BaseResult Result = ParseBaseSpecifier(ClassDecl); - if (Result.isInvalid()) { + if (!Result.isUsable()) { ---------------- shafik wrote:
I am a bit surprised we still don't want the `BaseInfo.push_back(Result.get())` in the else branch in the good case. Why does not having this not change behavior? https://github.com/llvm/llvm-project/pull/147213 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits