Skip to content

Conversation

@lprv
Copy link
Contributor

@lprv lprv commented Dec 15, 2025

The last sentence of this example talks about a being initialized "after the first statement of main", which doesn't make sense since that statement odr-uses it (assuming Use is not a static member).

int main() {
a.Use();
b.Use();
a.Use();
Copy link
Member

Choose a reason for hiding this comment

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

Instead of changing the order here (which feels scary), I'd prefer changing the "after the first statement of main" utterance below. What do we say normatively here? Can we just add an empty statement as the first statement of main to defuse the situation?

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