Skip to content

[2026-11 CWG Motion 3] P4451R2 Early Adoption of an Always-Enforced Label - #9418

Open
notadragon wants to merge 1 commit into
cplusplus:mainfrom
notadragon:p4451r2_early_adoption_of_an_always_enforced_label
Open

notadragon wants to merge 1 commit into
cplusplus:mainfrom
notadragon:p4451r2_early_adoption_of_an_always_enforced_label

Conversation

@notadragon

Copy link
Copy Markdown
Contributor

Fixes #9399
Also fixes cplusplus/papers#2950

Comment thread source/basic.tex Resolved
Comment thread source/preprocessor.tex
\defnxname{cpp_constexpr_virtual_inheritance} & \tcode{202506L} \\ \rowsep
\defnxname{cpp_constinit} & \tcode{201907L} \\ \rowsep
\defnxname{cpp_contracts} & \tcode{202606L} \\ \rowsep
\defnxname{cpp_contracts} & \tcode{202611L} \\ \rowsep

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.

Previously __cpp_contracts was bumped to 202606L by P3097R3. IIUC P3097R3 targets C++29 while P4451R2 targets C++26. Could the value 202611L cause problem in C++26, as it indicates that P3097R3 is supported, but in fact it's not in C++26?

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.

interesting times call for interesting solutions.

i think we will want to leave this alone, and then possiblely open a core issue to bump the c++29 macro version.

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.

Although the value could be arbitrary, I personally slightly prefer to make the C++26 value lower than or equal to 202603L (the value of __cplusplus).

@notadragon notadragon Nov 22, 2026 •

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.

i wouldn't object to that, but I would revert it from this pr and then just update it in the DIS. (the WD would stay with the p3097 value)

@tkoeppe tkoeppe Nov 22, 2026 •

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.

I see no reason to diverge from the wording that the working group has just approved. I assume they had their reasons.

@jensmaurer Is there an oversight here that we should correct?

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.

we didn't discuss the point that this c++26 feature would be moved after a c++29 feature. i think we really want the feature test macro order to be p2900 p4451 p3097.

we also have never bumped a feature test macro after the dis befoee. i think we should either drop p4451 to 202603L or bump __cplusplus for this new dis yo 202611L

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.

on my van:

poll: this van recommends requesting the editors to bump __cplusplus to match the date of the DIS.

SF F N A SA
5 0 0 0 0

result: strong consensus

@tkoeppe tkoeppe Nov 22, 2026 •

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.

Not quorate unless @jensmaurer was present :-)

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.

to match the date of the DIS.

Dis is very imprecisely worded.

@notadragon notadragon Nov 22, 2026 •

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.

the entire admin group moved to form the van group with me as chair. lewgi and sg23 seconded.

@tkoeppe
tkoeppe force-pushed the p4451r2_early_adoption_of_an_always_enforced_label branch from 932073f to 559872f Compare November 22, 2026 18:36
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.

[2026-11 CWG Motion 3] P4451R2 Early Adoption of an Always-Enforced Label P4451 R0 Early Adoption of an Always-Enforced Label

4 participants