Skip to content

P2723 Zero-initialize objects of automatic storage duration #1401

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

Closed
wg21bot opened this issue Dec 5, 2022 · 5 comments
Closed

P2723 Zero-initialize objects of automatic storage duration #1401

wg21bot opened this issue Dec 5, 2022 · 5 comments
Labels
EWG Evolution needs-revision Paper needs changes before it can proceed SG22 C / C++ liaison

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Dec 5, 2022

P2723R0 Zero-initialize objects of automatic storage duration (JF Bastien)

@wg21bot wg21bot added EWG Evolution SG12 Undefined Behavior SG22 C / C++ liaison labels Dec 5, 2022
@wg21bot wg21bot added this to the 2022-telecon milestone Dec 5, 2022
@wg21bot
Copy link
Collaborator Author

wg21bot commented Jan 16, 2023

P2723R1 Zero-initialize objects of automatic storage duration (JF Bastien)

@ben-craig ben-craig added the SG23 Safety and Security label Jan 17, 2023
@ben-craig
Copy link

ben-craig commented Feb 10, 2023

P2723R1

SG23 (Safety and Security) saw this

Chairs: Roger Orr, Ben Craig
Champion: JF Bastien
Minutes: Mungo Gill

POLL: We are interested in pursuing some form of automatic stack variable initialization.

Strongly Favor Weakly Favor Neutral Weakly Against Strongly Against
40 13 2 1 1

Outcome: Consensus in favor

SA: Would like to see forced manual initialization

WA: Same

Next Steps:

EWG should see this next.

@ben-craig ben-craig removed SG12 Undefined Behavior SG23 Safety and Security labels Feb 10, 2023
@erichkeane
Copy link
Collaborator

This paper was discussed in EWG during the February 10th, 2023 morning session in Issaquah. The following polls were taken:

EWG is interested in some form of automatic stack variable initialization.

SF F N A SA
39 10 4 0 0

Result: Consensus

EWG believes zero initialization, as presented in P2723R1, is the approach we wish to take to automatic stack variable initialization (with opt out).

SF F N A SA
22 14 10 4 5

Result: Consensus

As a syntax for opting-out of automatic stack variable initialization, EWG prefers the [[uninitialized]] attribute.

SF F N A SA
8 20 13 10 5

Result: Not Consensus

As a syntax for opting-out of automatic stack variable initialization, EWG prefers assignment from void.

SF F N A SA
3 11 10 18 11

Result: Not Consensus

As a syntax for opting-out of automatic stack variable initialization, EWG prefers a magic std::uninitialized library type.

SF F N A SA
20 11 10 11 5

Result: Weak Consensus

@jfbastien
Copy link
Collaborator

This paper has been blocked on progress for #1460.

@jensmaurer jensmaurer removed this from the 2023-telecon milestone Mar 19, 2024
@jfbastien
Copy link
Collaborator

P2795 was merged in March.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EWG Evolution needs-revision Paper needs changes before it can proceed SG22 C / C++ liaison
Projects
None yet
Development

No branches or pull requests

5 participants