[all-commits] [llvm/llvm-project] 82a321: [Clang][Sema] Fix crash with const qualified membe...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Fri Feb 2 20:27:07 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82a32140acb52472241f04644cdcf88a4cf4bee8
      https://github.com/llvm/llvm-project/commit/82a32140acb52472241f04644cdcf88a4cf4bee8
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2024-02-02 (Fri, 02 Feb 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaType.cpp
    M clang/test/SemaCXX/function-type-qual.cpp

  Log Message:
  -----------
  [Clang][Sema] Fix crash with const qualified member operator new (#80327)

We should diagnose a const qualified member operator new but we fail to
do so and this leads to crash during debug info generation.

The fix is to diagnose this as ill-formed in the front-end.

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




More information about the All-commits mailing list