[clang] [Clang] Avoid null deref in lambda attribute compat warning (PR #161096)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 29 03:15:10 PDT 2025


================
@@ -432,6 +432,8 @@ Bug Fixes to C++ Support
 - Fix an assertion failure when taking the address on a non-type template parameter argument of
   object type. (#GH151531)
 - Suppress ``-Wdouble-promotion`` when explicitly asked for with C++ list initialization (#GH33409).
+- Fixed a crash in the pre-C++23 warning for attributes before a lambda
+  declarator by unifying format args to ``%0`` as attribute name, ``%1`` as selector (#GH161070).
----------------
cor3ntin wrote:

```suggestion
- Fixed a crash in the pre-C++23 warning for attributes before a lambda declarator. (#GH161070)
```

Users don't care about implementation details :)

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


More information about the cfe-commits mailing list