Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expr.sub] Add missing cross-references #7688

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Endilll
Copy link
Contributor

@Endilll Endilll commented Feb 17, 2025

This patch adds several cross-references to Declarations section, and moves reference to [over.sub] to an earlier occurrence of the term "subscript operator function".

@@ -3257,7 +3257,7 @@
consisting of a single \grammarterm{assignment-expression}.
One of the expressions shall be a glvalue of type ``array of
\tcode{T}'' or a prvalue of type ``pointer
to \tcode{T}'' and the other shall be a prvalue of unscoped enumeration or integral type.
to \tcode{T}'' and the other shall be a prvalue of unscoped enumeration\iref{dcl.enum} or integral type.
Copy link
Member

@jensmaurer jensmaurer Feb 17, 2025

Choose a reason for hiding this comment

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

The other changes are fine; this one feels both unneeded (enumerations aren't really strange) and asymmetrical, because there is no xref for "integral type".

I suggest to drop this part.

Copy link
Contributor Author

@Endilll Endilll Feb 17, 2025

Choose a reason for hiding this comment

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

Unlike unscoped enumerations, which are defined later in the wording, integral types are defined earlier, in [basic.fundamental]. So asymmetry is somewhat inevitable here. But sure, I'll drop this cross-reference.

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.

2 participants