[clang] [clang][Sema] Fix Issue: #166957 - type inconsistency for constrained auto variables(Fixes #166957) (PR #167100)

via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 7 23:37:55 PST 2025


KaushalMorankar wrote:

The bug was in the internal type consistency between getTypeSourceInfo()->getType() and getType(). I added compilation tests that serve as regression tests to ensure these patterns continue to compile correctly. While these tests don't directly verify the AST
consistency, they cover various scenarios where constrained auto is used, and I manually verified the fix by running AST dump on the test cases to confirm the AutoType objects have correct dependency flags and are consistent.

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


More information about the cfe-commits mailing list