[clang] [Clang] Re-analyze parenthesized aggregate mem-initializers on instantiation (PR #224918)

Akash Manna via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 22 11:53:28 PDT 2026


akash-manna-sky wrote:

> Does this also fix #189005 / #213284 ?

Yes, both. They take the same path (InstantiateMemInitializers -> BuildMemberInitializer with a CXXParenListInitExpr); #189005 is the array-of-aggregates shape and #213284 is the stripped integral cast. I've added both reproducers as tests and the Fixes lines. This is effectively the same change as #213565 (closed when the fork was deleted), except it only re-analyzes the user-specified elements so the trailing default-member-init and value-init elements are regenerated rather than passed back as arguments.


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


More information about the cfe-commits mailing list