Skip to content

[CWG 2026-06-7] P2434R5 Nondeterministic pointer provenance#9148

Merged
tkoeppe merged 1 commit into
mainfrom
motions-2026-06-cwg-7
Jul 14, 2026
Merged

[CWG 2026-06-7] P2434R5 Nondeterministic pointer provenance#9148
tkoeppe merged 1 commit into
mainfrom
motions-2026-06-cwg-7

Conversation

@burblebee

@burblebee burblebee commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #9074.

Also fixes cplusplus/papers#1364
Also fixes cplusplus/CWG#931

@burblebee burblebee marked this pull request as ready for review June 19, 2026 07:39
@jensmaurer jensmaurer added this to the post-2026-06 milestone Jun 21, 2026
Comment thread source/basic.tex Outdated
\impldef{subset of values of a trivially copyable type
for which a value representation corresponds to}
subset of this set.
%%FIXME: "*the* set of values" - what set of values?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above: "each type T has a set of (discrete) values"
(those are values in the abstract sense)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear as is - too many "value"s have been discussed since then. Introduce a placeholder S to be that "set of discrete values" and refer to that here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In symbols: $\bigcup_R S_R = S$, where $S$ is the set of values of a type T, the union ranges over all object representations $R$ of the T, and $S_R$ is the "distinct, impl-def" subset for that representation. Morever, $\lvert S_R \rvert = 1$ when T is a scalar type other than a pointer type.

But I think the wording is quite clear.

@tkoeppe tkoeppe force-pushed the motions-2026-06-cwg-7 branch from 82255de to 3504945 Compare July 14, 2026 19:42
@tkoeppe tkoeppe merged commit a3029e1 into main Jul 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants