[all-commits] [llvm/llvm-project] 5105ec: [clang] Refine handling of C++20 aggregate initial...

offsetof via All-commits all-commits at lists.llvm.org
Tue Mar 25 07:30:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5105ecc413757999ea0aec238ed54ae39dbf005d
      https://github.com/llvm/llvm-project/commit/5105ecc413757999ea0aec238ed54ae39dbf005d
  Author: offsetof <offsetof at mailo.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/CXX/dcl.decl/dcl.init/dcl.init.general/p16-cxx20.cpp

  Log Message:
  -----------
  [clang] Refine handling of C++20 aggregate initialization (#131320)

* Move parts of `InitializationSequence::InitializeFrom` corresponding
to C++ [dcl.init.general] p16.6.1 and p16.6.2 into a separate
function,`TryConstructorOrParenListInitialization`
* Use it in `TryListInitialization` to implement [dcl.init.list] p3.2
* Fix parenthesized aggregate initialization being attempted in
copy-initialization contexts or when the constructor call is ambiguous

Co-authored-by: cor3ntin <corentinjabot at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list