Skip to content

[basic.def.odr] Fix comment in example#8599

Open
lprv wants to merge 1 commit into
cplusplus:mainfrom
lprv:r46
Open

[basic.def.odr] Fix comment in example#8599
lprv wants to merge 1 commit into
cplusplus:mainfrom
lprv:r46

Conversation

@lprv

@lprv lprv commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@eisenwave eisenwave added the P2-Bug Presentational errors and omissions label Dec 10, 2025
@tkoeppe

tkoeppe commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

@opensdh could you have a look?

@opensdh

opensdh commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

I'm sure I could check this, but it's not wording I already know. Maybe ask someone else first?

Comment thread source/basic.tex
constexpr A a = {1};
constexpr const volatile A& r = a; // odr-uses \tcode{a}
int _ = f(cond ? a.x : r.x); // does not odr-use \tcode{a} or \tcode{r}
int _ = f(cond ? a.x : r.x); // odr-uses \tcode{a} but not \tcode{r}

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.

Why does this odr-use a ? a is sufficiently constant, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2-Bug Presentational errors and omissions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants