Skip to content

Commit ceb823f

Browse files
Collect pending Changes entries for 2026-11-20 []
1 parent 69d1f4f commit ceb823f

2 files changed

Lines changed: 18 additions & 16 deletions

File tree

‎src/Changes‎

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

3+
11/20/26 [GH #324]
4+
Implicit "this" in a default member initializer used by a constructor
5+
6+
The changes for GH #408 did not cover the case where a default member
7+
initializer that contains an aggregate initialization of another object of
8+
the same class is used by a constructor (an implicitly-defined default
9+
constructor, possibly called for a base class or a member). An implicit
10+
use of "this" in the elements of the nested initialization still referred
11+
to the nested object instead of to the object being constructed. For
12+
example:
13+
14+
struct Y { unsigned k = 7; unsigned n = Y{2, k}.n; };
15+
struct D : Y { D() {} };
16+
unsigned n = D().n; // n is now 7 (previously 2).
17+
18+
This is now fixed.
19+
20+
321
11/19/26 [GH #546]
422
C++-generating back end: dropped parentheses around co_await and co_yield
523

‎src/pending_changes/gh-324-nsdmi-this-ctor-init.txt‎

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

0 commit comments

Comments
 (0)