[all-commits] [llvm/llvm-project] ea524f: [Clang] Fix coroutine promise with inherited alloc...

Moritz Sichert via All-commits all-commits at lists.llvm.org
Tue Feb 24 09:26:14 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea524fb666cbdc3e827243df9241490a744c06ae
      https://github.com/llvm/llvm-project/commit/ea524fb666cbdc3e827243df9241490a744c06ae
  Author: Moritz Sichert <moritz at cedardb.com>
  Date:   2026-02-24 (Tue, 24 Feb 2026)

  Changed paths:
    M clang/lib/Sema/SemaCoroutine.cpp
    A clang/test/SemaCXX/coroutine-inherited-allocator.cpp

  Log Message:
  -----------
  [Clang] Fix coroutine promise with inherited allocation functions (#179141)

The compiler frontend crashed when the promise class overloads operator
new/delete without a regular function declaration. This happens when the
promise class derives from a base class and takes the allocation
functions from the base class with:
    using Base::operator new;
    using Base::operator delete;

This was initially introduced by
1cd59264aa2fb4b0ba70ff03c1298b1b5c21271e.

This should also fix #164088



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