[clang] [Clang] Fix crash on malformed std::partial_ordering static members (PR #172001)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 12 09:01:05 PST 2025
code-pankaj wrote:
@tbaederr @zwuis Thanks for the Review!
I have updated the PR based on the feedback. I moved the fix to `ComparisonCategoryInfo::lookupValueInfo` to enforce strict type checking on the static members. This ensures we reject malformed types (like `int`) immediately with a proper "member missing" error.
I have also added the test and the Release Note entry.
Please let me know if anything else is needed!
https://github.com/llvm/llvm-project/pull/172001
More information about the cfe-commits
mailing list