[all-commits] [llvm/llvm-project] d44518: [Clang] Don't check incomplete CXXRecordDecl's mem...

Younan Zhang via All-commits all-commits at lists.llvm.org
Tue Dec 10 02:37:51 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d44518c1cc2e5c598f51cbdd32e6d18a12b1a4bb
      https://github.com/llvm/llvm-project/commit/d44518c1cc2e5c598f51cbdd32e6d18a12b1a4bb
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2024-12-10 (Tue, 10 Dec 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp

  Log Message:
  -----------
  [Clang] Don't check incomplete CXXRecordDecl's members when transforming sizeof...(expr) (#119344)

For a FunctionParmPackExpr that is used as the argument of a
sizeof...(pack) expression, we might exercise the logic that checks the
CXXRecordDecl's members regardless of the type being incomplete, when
rebuilding the DeclRefExpr into non-ODR-used forms.

Fixes https://github.com/llvm/llvm-project/issues/81436



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