[clang] [clang] Fix mangling of constrained auto referring to a parameter when the return type has an ABI tag (PR #223121)

Akash Manna via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 16 04:12:39 PDT 2026


================
@@ -648,6 +645,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 mangling an abbreviated function template whose
+  constrained `auto` parameter refers to an earlier parameter (e.g.
+  `template<typename T> auto f(T t, C<decltype(t)> auto) -> S`) and whose
+  return type has an ABI tag, such as a type declared in an `abi_tag` inline
+  namespace like `std::string` under libstdc++. (#GH204178)
+
----------------
akash-manna-sky wrote:

Applied. @zyn0217 


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


More information about the cfe-commits mailing list