Skip to content

Commit ca9b032

Browse files
author
github-actions
committed
Automatic update from GitHub Actions workflow
1 parent f1dfcdf commit ca9b032

22 files changed

+355
-41
lines changed

issue4340.html

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Issue 4340: task::promise_type::unhandled_stopped() should be noexcept</title>
6+
<meta property="og:title" content="Issue 4340: task::promise_type::unhandled_stopped() should be noexcept">
7+
<meta property="og:description" content="C++ library issue. Status: New">
8+
<meta property="og:url" content="https://cplusplus.github.io/LWG/issue4340.html">
9+
<meta property="og:type" content="website">
10+
<meta property="og:image" content="http://cplusplus.github.io/LWG/images/cpp_logo.png">
11+
<meta property="og:image:alt" content="C++ logo">
12+
<style>
13+
p {text-align:justify}
14+
li {text-align:justify}
15+
pre code.backtick::before { content: "`" }
16+
pre code.backtick::after { content: "`" }
17+
blockquote.note
18+
{
19+
background-color:#E0E0E0;
20+
padding-left: 15px;
21+
padding-right: 15px;
22+
padding-top: 1px;
23+
padding-bottom: 1px;
24+
}
25+
ins {background-color:#A0FFA0}
26+
del {background-color:#FFA0A0}
27+
table.issues-index { border: 1px solid; border-collapse: collapse; }
28+
table.issues-index th { text-align: center; padding: 4px; border: 1px solid; }
29+
table.issues-index td { padding: 4px; border: 1px solid; }
30+
table.issues-index td:nth-child(1) { text-align: right; }
31+
table.issues-index td:nth-child(2) { text-align: left; }
32+
table.issues-index td:nth-child(3) { text-align: left; }
33+
table.issues-index td:nth-child(4) { text-align: left; }
34+
table.issues-index td:nth-child(5) { text-align: center; }
35+
table.issues-index td:nth-child(6) { text-align: center; }
36+
table.issues-index td:nth-child(7) { text-align: left; }
37+
table.issues-index td:nth-child(5) span.no-pr { color: red; }
38+
@media (prefers-color-scheme: dark) {
39+
html {
40+
color: #ddd;
41+
background-color: black;
42+
}
43+
ins {
44+
background-color: #225522
45+
}
46+
del {
47+
background-color: #662222
48+
}
49+
a {
50+
color: #6af
51+
}
52+
a:visited {
53+
color: #6af
54+
}
55+
blockquote.note
56+
{
57+
background-color: rgba(255, 255, 255, .10)
58+
}
59+
}
60+
</style>
61+
</head>
62+
<body>
63+
<hr>
64+
<p><em>This page is a snapshot from the LWG issues list, see the <a href="lwg-active.html">Library Active Issues List</a> for more information and the meaning of <a href="lwg-active.html#New">New</a> status.</em></p>
65+
<h3 id="4340"><a href="lwg-active.html#4340">4340</a>. <code>task::promise_type::unhandled_stopped()</code> should be <code>noexcept</code></h3>
66+
<p><b>Section:</b> 33.13.6.5 <a href="https://wg21.link/task.promise">[task.promise]</a> <b>Status:</b> <a href="lwg-active.html#New">New</a>
67+
<b>Submitter:</b> Dietmar Kühl <b>Opened:</b> 2025-08-31 <b>Last modified:</b> 2025-09-01</p>
68+
<p><b>Priority: </b>Not Prioritized
69+
</p>
70+
<p><b>View other</b> <a href="lwg-index-open.html#task.promise">active issues</a> in [task.promise].</p>
71+
<p><b>View all other</b> <a href="lwg-index.html#task.promise">issues</a> in [task.promise].</p>
72+
<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
73+
<p><b>Discussion:</b></p>
74+
<p>
75+
The function <code>task::promise_type::unhandled_stopped()</code>
76+
is called from <code>set_stopped()</code> of a receiver and calls
77+
<code>set_stopped</code> itself. These functions are required to
78+
be <code>noexcept</code>. Thus, <code>unhandled_stopped()</code>
79+
can't throw an exception and should be marked <code>noexcept</code>.
80+
All other declarations of <code>unhandled_stopped()</code> are
81+
already marked <code>noexcept</code> but
82+
<code>task::promise_type::unhandled_stopped()</code> isn't.
83+
</p>
84+
85+
86+
<p id="res-4340"><b>Proposed resolution:</b></p>
87+
<p>
88+
In the synopsis in 33.13.6.5 <a href="https://wg21.link/task.promise">[task.promise]</a> add <code>noexcept</code>
89+
to the declaration of <code>task::promise_type::unhandled_stopped()</code>:
90+
<blockquote><pre>
91+
namespace std::execution {
92+
template&lt;class T, class Environment&gt;
93+
class task&lt;T, Environment&gt;::promise_type {
94+
...
95+
coroutine_handle&lt;&gt; unhandled_stopped() <ins>noexcept</ins>;
96+
...
97+
};
98+
}
99+
</pre></blockquote>
100+
</p>
101+
<p>
102+
In the specification in 33.13.6.5 <a href="https://wg21.link/task.promise">[task.promise]</a> paragraph 13 add <code>noexcept</code>:
103+
<blockquote>
104+
<pre>
105+
coroutine_handle&lt;&gt; unhandled_stopped() <ins>noexcept</ins>;
106+
</pre>
107+
<p>-13- <i>Effects</i>: Completes the asynchronous operation
108+
associated with <code><i>STATE</i>(*this)</code> by invoking
109+
<code>set_stopped(std::move(<i>RCVR</i>(*this)))</code>.</p>
110+
</blockquote>
111+
</p>
112+
113+
114+
115+
116+
117+
</body>
118+
</html>

lwg-active.html

Lines changed: 58 additions & 5 deletions
Large diffs are not rendered by default.

lwg-closed.html

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

lwg-defects.html

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

lwg-immediate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1>C++ Standard Library Issues Resolved Directly In [INSERT CURRENT MEETING HER
6262
</tr>
6363
<tr>
6464
<td align="left">Date:</td>
65-
<td align="left">Revised 2025-09-01 at 11:54:35 UTC
65+
<td align="left">Revised 2025-09-01 at 17:03:34 UTC
6666
</td>
6767
</tr>
6868
<tr>

lwg-index-open.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>Index by Section</h1>
6666
<p>This document is the Index by Section for the <a href="lwg-active.html">Library Active Issues List</a>.</p>
6767
<h2>Index by Section (non-Ready active issues only)</h2>
6868
<p><a href="lwg-index.html">(view all issues)</a></p>
69-
<p>Revised 2025-09-01 at 11:54:35 UTC
69+
<p>Revised 2025-09-01 at 17:03:34 UTC
7070
</p><h2 id="Section_3">Section 3 (2 issues)</h2>
7171
<p><a href="lwg-index.html#Section_3">(view all issues)</a></p>
7272
<table class="issues-index">
@@ -6203,7 +6203,7 @@ <h2 id="Section_32">Section 32 (44 issues)</h2>
62036203
<td></td>
62046204
</tr>
62056205
</table>
6206-
<h2 id="Section_33">Section 33 (23 issues)</h2>
6206+
<h2 id="Section_33">Section 33 (24 issues)</h2>
62076207
<p><a href="lwg-index.html#Section_33">(view all issues)</a></p>
62086208
<table class="issues-index">
62096209
<tr>
@@ -6422,6 +6422,15 @@ <h2 id="Section_33">Section 33 (23 issues)</h2>
64226422
<td></td>
64236423
<td></td>
64246424
</tr>
6425+
<tr>
6426+
<td id="4340"><a href="lwg-active.html#4340" title="task::promise_type::unhandled_stopped() should be noexcept (Status: New)">4340</a><sup><a href="https://cplusplus.github.io/LWG/issue4340">(i)</a></sup></td>
6427+
<td><a href="lwg-active.html#New">New</a></td>
6428+
<td>33.13.6.5 [task.promise]</td>
6429+
<td><code>task::promise_type::unhandled_stopped()</code> should be <code>noexcept</code></td>
6430+
<td>Yes</td>
6431+
<td></td>
6432+
<td></td>
6433+
</tr>
64256434
</table>
64266435
<h2 id="Section_99">Section 99 (10 issues)</h2>
64276436
<p><a href="lwg-index.html#Section_99">(view all issues)</a></p>

lwg-index.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>Index by Section</h1>
6666
<p>This document is the Index by Section for the <a href="lwg-active.html">Library Active Issues List</a>, <a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>.</p>
6767
<h2>Index by Section</h2>
6868
<p><a href="lwg-index-open.html">(view only non-Ready open issues)</a></p>
69-
<p>Revised 2025-09-01 at 11:54:35 UTC
69+
<p>Revised 2025-09-01 at 17:03:34 UTC
7070
</p><h2 id="Section_2">Section 2 (2 issues)</h2>
7171
<table class="issues-index">
7272
<tr>
@@ -32297,7 +32297,7 @@ <h2 id="Section_32">Section 32 (284 issues)</h2>
3229732297
<td></td>
3229832298
</tr>
3229932299
</table>
32300-
<h2 id="Section_33">Section 33 (35 issues)</h2>
32300+
<h2 id="Section_33">Section 33 (36 issues)</h2>
3230132301
<p><a href="lwg-index-open.html#Section_33">(view only non-Ready open issues)</a></p>
3230232302
<table class="issues-index">
3230332303
<tr>
@@ -32624,6 +32624,15 @@ <h2 id="Section_33">Section 33 (35 issues)</h2>
3262432624
<td></td>
3262532625
<td></td>
3262632626
</tr>
32627+
<tr>
32628+
<td id="4340"><a href="lwg-active.html#4340" title="task::promise_type::unhandled_stopped() should be noexcept (Status: New)">4340</a><sup><a href="https://cplusplus.github.io/LWG/issue4340">(i)</a></sup></td>
32629+
<td><a href="lwg-active.html#New">New</a></td>
32630+
<td>33.13.6.5 [task.promise]</td>
32631+
<td><code>task::promise_type::unhandled_stopped()</code> should be <code>noexcept</code></td>
32632+
<td>Yes</td>
32633+
<td></td>
32634+
<td></td>
32635+
</tr>
3262732636
</table>
3262832637
<h2 id="Section_99">Section 99 (120 issues)</h2>
3262932638
<p><a href="lwg-index-open.html#Section_99">(view only non-Ready open issues)</a></p>

lwg-ready.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1>C++ Standard Library Issues to be moved in [INSERT CURRENT MEETING HERE]</h1
6262
</tr>
6363
<tr>
6464
<td align="left">Date:</td>
65-
<td align="left">Revised 2025-09-01 at 11:54:35 UTC
65+
<td align="left">Revised 2025-09-01 at 17:03:34 UTC
6666
</td>
6767
</tr>
6868
<tr>

lwg-status-date.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ <h1>Index by Status and Date</h1>
6767
This document is the Index by Status and Date for the <a href="lwg-active.html">Library Active Issues List</a>,
6868
<a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>.
6969
</p>
70-
<p>Revised 2025-09-01 at 11:54:35 UTC
70+
<p>Revised 2025-09-01 at 17:03:34 UTC
7171
</p><h2 id="Ready">Ready (1 issues)</h2>
7272
<table class="issues-index">
7373
<tr>
@@ -356,7 +356,7 @@ <h2 id="Tentatively_NAD">Tentatively NAD (14 issues)</h2>
356356
<td></td>
357357
</tr>
358358
</table>
359-
<h2 id="New">New (546 issues)</h2>
359+
<h2 id="New">New (547 issues)</h2>
360360
<table class="issues-index">
361361
<tr>
362362
<th><a href="lwg-toc.html">Issue</a></th>
@@ -458,6 +458,15 @@ <h2 id="New">New (546 issues)</h2>
458458
<td></td>
459459
</tr>
460460
<tr>
461+
<td id="4340"><a href="lwg-active.html#4340" title="task::promise_type::unhandled_stopped() should be noexcept (Status: New)">4340</a><sup><a href="https://cplusplus.github.io/LWG/issue4340">(i)</a></sup></td>
462+
<td><a href="lwg-active.html#New">New</a></td>
463+
<td>33.13.6.5 [task.promise]</td>
464+
<td><code>task::promise_type::unhandled_stopped()</code> should be <code>noexcept</code></td>
465+
<td>Yes</td>
466+
<td></td>
467+
<td></td>
468+
</tr>
469+
<tr>
461470
<td id="4329"><a href="lwg-active.html#4329" title="Customising affine_on for other algorithms (Status: New)">4329</a><sup><a href="https://cplusplus.github.io/LWG/issue4329">(i)</a></sup></td>
462471
<td><a href="lwg-active.html#New">New</a></td>
463472
<td>33.13.3 [exec.affine.on]</td>

lwg-status.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1>Index by Status and Section</h1>
6262
<a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>.
6363
</p>
6464

65-
<p>Revised 2025-09-01 at 11:54:35 UTC
65+
<p>Revised 2025-09-01 at 17:03:34 UTC
6666
</p><h2 id="Ready">Ready (1 issues)</h2>
6767
<table class="issues-index">
6868
<tr>
@@ -351,7 +351,7 @@ <h2 id="Tentatively_NAD">Tentatively NAD (14 issues)</h2>
351351
<td></td>
352352
</tr>
353353
</table>
354-
<h2 id="New">New (546 issues)</h2>
354+
<h2 id="New">New (547 issues)</h2>
355355
<table class="issues-index">
356356
<tr>
357357
<th><a href="lwg-toc.html">Issue</a></th>
@@ -5182,6 +5182,15 @@ <h2 id="New">New (546 issues)</h2>
51825182
<td></td>
51835183
</tr>
51845184
<tr>
5185+
<td id="4340"><a href="lwg-active.html#4340" title="task::promise_type::unhandled_stopped() should be noexcept (Status: New)">4340</a><sup><a href="https://cplusplus.github.io/LWG/issue4340">(i)</a></sup></td>
5186+
<td><a href="lwg-active.html#New">New</a></td>
5187+
<td>33.13.6.5 [task.promise]</td>
5188+
<td><code>task::promise_type::unhandled_stopped()</code> should be <code>noexcept</code></td>
5189+
<td>Yes</td>
5190+
<td></td>
5191+
<td></td>
5192+
</tr>
5193+
<tr>
51855194
<td id="2479"><a href="lwg-active.html#2479" title="Unclear how wbuffer_convert uses cvtstate (Status: New)">2479</a><sup><a href="https://cplusplus.github.io/LWG/issue2479">(i)</a></sup></td>
51865195
<td><a href="lwg-active.html#New">New</a></td>
51875196
<td>99 [depr.conversions.buffer]</td>

0 commit comments

Comments
 (0)