Skip to content

Commit f9e48bc

Browse files
Collect pending Changes entries for 2026-11-19 []
1 parent 123522f commit f9e48bc

4 files changed

Lines changed: 61 additions & 55 deletions

File tree

‎src/Changes‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,66 @@
11
Version 7.1
22

3+
11/19/26 [GH #546]
4+
C++-generating back end: dropped parentheses around co_await and co_yield
5+
6+
In configurations with PARENS_IN_IL set to FALSE, the C++-generating back
7+
end could drop parentheses that are needed to keep the meaning of co_await
8+
and co_yield expressions, so the generated code was rejected or had a
9+
different meaning. For example, with --c++20:
10+
11+
#include <coroutine>
12+
struct S { int m; };
13+
struct A {
14+
bool await_ready();
15+
void await_suspend(std::coroutine_handle<>);
16+
S await_resume();
17+
};
18+
int f();
19+
std::task<int> g(bool c, A x, A y) {
20+
int i = (co_await x).m; // Was generated as "co_await x.m".
21+
co_await (c ? x : y); // Was generated as "co_await c ? x : y".
22+
co_yield (f(), i); // Was generated as "co_yield f(), i".
23+
co_return i;
24+
}
25+
26+
Additionally, in configurations with ALL_TEMPLATE_INFO_IN_IL set to TRUE, a
27+
dependent co_yield expression used as an operand, as in "(co_yield T{}) + 1",
28+
had the same problem. Parentheses are now added where they are needed.
29+
30+
31+
11/19/26 [GH #514]
32+
C: pointer conversions adding qualifiers below the first level
33+
34+
In C, the front end accepted an implicit conversion between pointer types
35+
that adds type qualifiers below the first level, such as "int **" to
36+
"const int *const *", without a diagnostic. Such a conversion is valid in
37+
C++, but in C the types pointed to are not compatible, so it violates a
38+
constraint and requires a diagnostic (C23 6.5.17.2). A warning is now
39+
issued; the conversion is still accepted. For example:
40+
41+
void f(int **p) {
42+
const int *const *q;
43+
q = p; // Now a warning.
44+
}
45+
46+
47+
11/19/26 [GH #393]
48+
IL write/read check failure for [[assume]] with an inlinable call
49+
50+
When lowering the argument of an [[assume]] attribute, the empty statement
51+
that carries the attribute was passed to the lowering of the expression as
52+
if the argument were the statement's own expression. If the argument was a
53+
call that could be inlined (for example, a call to a constexpr function),
54+
the inlining turned the statement into a block and the attribute was lost.
55+
In a debug build, the IL write/read check then failed with "not all
56+
expected entries were read". For example:
57+
58+
constexpr bool g(bool b) { return b; }
59+
constexpr int f(bool b) { [[assume(g(b))]]; return 1; }
60+
61+
The argument is now lowered without a statement, so the attribute is kept.
62+
63+
364
11/18/26 [GH #216]
465
Initial support for C++26 enumerating expansion statements (IL CHANGE)
566

‎src/pending_changes/gh-393-assume-inlined-call.txt‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎src/pending_changes/gh-514-c-mode-cv-qual-conv.txt‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎src/pending_changes/gh-546-coroutine-parens.txt‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)