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

via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 1 18:45:34 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 52353 tests passed
* 926 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.SemaCXX/coroutines.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -std=c++23 -fsyntax-only -verify=expected,cxx20_23,cxx23    C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\coroutines.cpp -fcxx-exceptions -fexceptions -Wunused-result
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -std=c++23 -fsyntax-only -verify=expected,cxx20_23,cxx23 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\coroutines.cpp' -fcxx-exceptions -fexceptions -Wunused-result
# .---command stderr------------
# | error: diagnostics with 'error' severity expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\coroutines.cpp Line 1005 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\coroutines.cpp:1006) 'cxx23-error': cannot initialize return object of type 'int' with an rvalue of type 'void *'
# | error: diagnostics with 'error' severity seen but not expected: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\coroutines.cpp Line 1005: cannot initialize return object of type 'int' with an rvalue of type 'decltype(__promise.get_return_object())' (aka 'void *')
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/179156


More information about the cfe-commits mailing list