[clang] [Clang] Ignore invalid base classes (PR #147213)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 10 19:09:23 PDT 2025
================
@@ -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
More information about the cfe-commits
mailing list