[all-commits] [llvm/llvm-project] 765d8a: [Clang][Sema] Fix incorrect deletion of default co...

Roy Jacobson via All-commits all-commits at lists.llvm.org
Wed Mar 15 14:56:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 765d8a192180f8f33618087b15c022fe758044af
      https://github.com/llvm/llvm-project/commit/765d8a192180f8f33618087b15c022fe758044af
  Author: Roy Jacobson <roi.jacobson1 at gmail.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDeclCXX.cpp
    A clang/test/CodeGen/union-non-trivial-member.cpp
    M clang/test/SemaCXX/cxx0x-nontrivial-union.cpp

  Log Message:
  -----------
  [Clang][Sema] Fix incorrect deletion of default constructors for some unions

If a union has explicit initializers for some members, we shouldn't delete
its default constructor.
Fixes https://github.com/llvm/llvm-project/issues/48416.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D145851




More information about the All-commits mailing list