[clang] [clang] fix the unexpected controlflow in `ParseTentative.cpp` (PR #95917)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 18 08:30:36 PDT 2024


https://github.com/AaronBallman commented:

Thank you for working on this! I was trying to devise a test case that would exercise the issue... and I think I've convinced myself this entire function is dead code. It only seems to be possible to reach in C++ mode, but `ident<ident>` is annotated as a typename before getting into a code path that would lead here. I removed the code entirely and ran the test suite and no tests failed.

@rjmccall -- do you have ideas on how we can trigger the issue here or do you think this code can be removed?

https://github.com/llvm/llvm-project/pull/95917


More information about the cfe-commits mailing list