================
@@ -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)
+
----------------
cor3ntin wrote:
```suggestion
- 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) {}`). (#GH216211)
```
https://github.com/llvm/llvm-project/pull/217386
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits