[all-commits] [llvm/llvm-project] 98e674: [clang] Non-object types are non-trivially relocat...

Amirreza Ashouri via All-commits all-commits at lists.llvm.org
Tue Nov 28 10:44:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98e674c9f16d677d95c67bc130e267fae331e43c
      https://github.com/llvm/llvm-project/commit/98e674c9f16d677d95c67bc130e267fae331e43c
  Author: Amirreza Ashouri <ar.ashouri999 at gmail.com>
  Date:   2023-11-28 (Tue, 28 Nov 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/Type.cpp
    M clang/test/SemaCXX/type-traits-incomplete.cpp
    A clang/test/SemaCXX/type-traits-nonobject.cpp

  Log Message:
  -----------
  [clang] Non-object types are non-trivially relocatable (#69734)

Both active C++ proposals (P1144 and P2786) agree that
`is_trivially_relocatable_v<int&>` and
`is_trivially_relocatable_v<int()>` should be false, not true. Only
complete object types can be trivially relocatable.

Fixes #67498




More information about the All-commits mailing list