[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 25 12:49:38 PDT 2025


https://github.com/shafik commented:

As a previous comment noted, this needs a release note but I think the summary should also mention that this fixes the warning diagnostic from `-Wdangling-gsl`. Maybe worth a comment in the test explaining these are verifying we don't trigger a diagnostic from `-Wdangling-gsl`

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


More information about the cfe-commits mailing list