[all-commits] [llvm/llvm-project] 9cda40: [clang][Sema] Fix initialization of GRO when GRO-r...

Weibo He via All-commits all-commits at lists.llvm.org
Tue Mar 3 00:08:29 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cda40735a17194fec9cac9689dd5acf1eb1a44f
      https://github.com/llvm/llvm-project/commit/9cda40735a17194fec9cac9689dd5acf1eb1a44f
  Author: Weibo He <NewSigma at 163.com>
  Date:   2026-03-03 (Tue, 03 Mar 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaCoroutine.cpp
    A clang/test/CodeGenCoroutines/coro-gro3.cpp

  Log Message:
  -----------
  [clang][Sema] Fix initialization of GRO when GRO-return type mismatches (CWG2563) (#179156)

This patch implements one piece of proposed solution to
[CWG2563](https://cplusplus.github.io/CWG/issues/2563.html):

> get-return-object-invocation is as follows:
> ...
> otherwise, get-return-object-invocation initializes a variable with
the exposition-only name gro as if by
> decltype(auto) gro = promise.get_return_object();

Close #98744



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