Skip to content

[basic.indet] Convert reference to [conv.lval] into note#7046

Merged
tkoeppe merged 1 commit into
cplusplus:mainfrom
eisenwave:circular-erroneous-reference
Nov 4, 2025
Merged

[basic.indet] Convert reference to [conv.lval] into note#7046
tkoeppe merged 1 commit into
cplusplus:mainfrom
eisenwave:circular-erroneous-reference

Conversation

@eisenwave

@eisenwave eisenwave commented Jun 4, 2024

Copy link
Copy Markdown
Member

Fixes #7045.

It is unclear what the purpose of erroneous value~\iref(conv.lval} is here. [conv.lval| is not the subclause which defines "erroneous value" but this cross-reference makes it look like it is. This is especially nonsensical given that [conv.lval] cross-references back to [basic.indet], making this a circular reference.

I assume that the intent here is to draw some extra attention to lvalue-to-rvalue conversion for specific erroneous values. Therefore, I have turned this into a note.

Alternatively, we could also eliminate the \iref completely and leave everything as is otherwise.

Also fixes #7715

@eisenwave eisenwave force-pushed the circular-erroneous-reference branch from efeb055 to 22dd6c5 Compare June 4, 2024 15:16
@tkoeppe

tkoeppe commented Nov 2, 2025

Copy link
Copy Markdown
Contributor

Originally (as per P2795R5) the reference was indeed meant to refer to the potential UB is the erroneous value is not valid. However, that wording was changed by https://cplusplus.github.io/CWG/issues/2899.html, and now the connection isn't as clear anymore.

I agree that the note is helpful in making that connection. @jensmaurer?

Comment thread source/basic.tex
Comment thread source/basic.tex Outdated
@eisenwave eisenwave force-pushed the circular-erroneous-reference branch from 22dd6c5 to 02d149f Compare November 3, 2025 15:07
@eisenwave eisenwave requested a review from jensmaurer November 3, 2025 15:07
@tkoeppe tkoeppe merged commit 3569622 into cplusplus:main Nov 4, 2025
2 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

Development

Successfully merging this pull request may close these issues.

[basic.indet] has a dangling xref to [conv.lval] [conv.lval], [basic.indet] Circular cross-referencing for "erroneous value"

3 participants