[clang] [Clang][Sema] Fix crash on default argument added after a parameter pack (PR #217386)

Akash Manna via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 20 02:04:36 PDT 2026


================
@@ -505,6 +505,12 @@ features cannot lower the translation-unit ABI level;
   to a subobject and is used in a context that requires an implicit conversion.
   (#GH215900)
 
+- Fixed an assertion when a redeclaration of a function template or an out-of-line
+  definition of a member of a class template added a default argument to a
+  parameter that follows a parameter pack (e.g.
+  `template <typename... T> S::S(T..., int = 10) {}`). Clang now diagnoses the
+  invalid default argument and discards it instead of asserting. (#GH216211)
+
----------------
akash-manna-sky wrote:

Applied.

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


More information about the cfe-commits mailing list