[clang] [clang] fix the unexpected controlflow in `ParseTentative.cpp` (PR #95917)
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 18 15:19:11 PDT 2024
rjmccall wrote:
> @rjmccall -- do you have ideas on how we can trigger the issue here or do you think this code can be removed?
I wouldn't be surprised either way — tentative parsing often contains code that feels like it ought to be redundant, but it also often takes strange paths in strange situations.
You might try writing `ident<ident>` in something like the parameter clause of a local function declaration, where ObjC++ will have to disambiguate it from a direct initialization but where the parser will enter tentative parsing without `ident<ident>` being the immediately following token.
https://github.com/llvm/llvm-project/pull/95917
More information about the cfe-commits
mailing list