[all-commits] [llvm/llvm-project] 4e6415: [Clang] Implement CWG2598: Union of non-literal ty...

cor3ntin via All-commits all-commits at lists.llvm.org
Tue Jan 16 21:16:24 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e64159c866446ed7f5783649f8f5699f84bb1a6
      https://github.com/llvm/llvm-project/commit/4e64159c866446ed7f5783649f8f5699f84bb1a6
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2024-01-17 (Wed, 17 Jan 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/DeclCXX.h
    M clang/lib/AST/DeclCXX.cpp
    M clang/test/CXX/drs/dr20xx.cpp
    M clang/test/CXX/drs/dr25xx.cpp
    M clang/test/SemaCXX/literal-type.cpp
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  [Clang] Implement CWG2598: Union of non-literal types (#78195)

A union is considered a literal type unless it has no non-literal
member.

This resolves CWG2096 (which makes unions with literal members literal)
and CWG2598 (empty unions are literal types).

Fixes #77924




More information about the All-commits mailing list