Landing: 4bf11aca586c

Project / Subsystem

gcc / c++

Date

2026-10-03

Author

Jakub Jelinek

Commit

4bf11aca586c9eef753b6f76d29ae19e1b505694

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
4bf11aca586c9eef753b6f76d29ae19e1b505694
source_type
github
headline
Implement C++29 P3950R1 for coroutines return values.
tldr
GCC now implements C++29 P3950R1, clarifying that coroutine return_value and return_void are not mutually exclusive.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • coroutines
  • • standardization
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-10-03T00:00:00.000Z

GCC now implements C++29 paper P3950R1, which clarifies that the return_value and return_void promise members in C++ coroutines are not mutually exclusive. This change removes diagnostics that previously flagged errors when both return_void and return_value could be successfully looked up. The __cpp_impl_coroutine macro has been updated to reflect the C++29 standard version, and tests have been adjusted accordingly.