Skip to content

P3100 R9 A framework for systematically addressing undefined behaviour in the C++ Standard #1901

Open

Description

@wg21bot

P3100R0 Undefined and erroneous behaviour are contract violations (Timur Doumler, Gašper Ažman, Joshua Berne)

Activity

  1. added this to the 2024-telecon milestone on May 22, 2024
  2. wg21bot commented on Oct 17, 2024

    @wg21bot
    CollaboratorAuthor

    P3100R1 Undefined and erroneous behaviour are contract violations (Timur Doumler, Gašper Ažman, Joshua Berne)

  3. changed the title [-]P3100 R0 Undefined and erroneous behaviour are contract violations[/-] [+]P3100 R1 Undefined and erroneous behaviour are contract violations[/+] on Oct 17, 2024
  4. timuraudio commented on Dec 9, 2024

    @timuraudio
    Collaborator

    Seen by SG21 in Wroclaw. 2024-11-22. The following polls were taken:

    Poll 6.
    We support the direction of P3100R1 and encourage the authors to come back with a fully specified proposal.

    SF F N A SA
    19 6 0 0 0

    Result: Consensus

    Poll 7.
    We want to see a paper, targeting C++26, that removes the allowance for erroneous behaviour to terminate execution at an unspecified time after the erroneous operation rather than immediately, thus making the allowed set of behaviours a strict subset of the evaluation semantics proposed in P3100R1.

    SF F N A SA
    4 10 4 2 1

    Result: Consensus

    Poll 8.
    We want to see a paper, targeting C++26, that allows erroneous behaviour to call the contract-violation handler.

    SF F N A SA
    11 7 4 1 0

    Result: Consensus

  5. jfbastien commented on Feb 12, 2025

    @jfbastien
    Collaborator

    See #2186 as the follow up paper. I'm unclear if P3100 is still relevant, please update with a revision if so.

  6. wg21bot commented on May 20, 2025

    @wg21bot
    CollaboratorAuthor

    P3100R2 Implicit contract assertions (Timur Doumler, Joshua Berne)

  7. 17 remaining items

  8. added this to the 2026-telecon milestone on Jan 5, 2026
  9. hanickadot commented on Mar 11, 2026

    @hanickadot
    Collaborator

    EWG won't see any contract paper targeting 29 at Croydon in order to focus on contracts in 26.

  10. changed the title [-]P3100 R5 Implicit contract assertions[/-] [+]P3100 R5 A framework for systematically addressing undefined behaviour in the C++ Standard[/+] on Mar 19, 2026
  11. je4d commented on Mar 26, 2026

    @je4d
    Collaborator

    EWG saw this in Croydon on Thursday afternoon and took the following polls:

    Forward P3100R5, with the presented rules applied to UB in the standard, to CWG for inclusion in C++29

    SF F N A SA
    1 17 10 18 14

    
not consensus

    Update P3100R5 by applying the presented rules to all cases of runtime-checkable UB in the standard, as listed in appendix A, and bring it back to EWG for case-by-case wording review

    SF F N A SA
    39 19 5 2 1

    
strong consensus


  12. wg21bot commented on May 12, 2026

    @wg21bot
    CollaboratorAuthor

    P3100R6 A framework for systematically addressing undefined behaviour in the C++ Standard (Timur Doumler, Joshua Berne)

  13. changed the title [-]P3100 R5 A framework for systematically addressing undefined behaviour in the C++ Standard[/-] [+]P3100 R6 A framework for systematically addressing undefined behaviour in the C++ Standard[/+] on May 12, 2026
  14. hanickadot commented on Jun 10, 2026

    @hanickadot
    Collaborator

    EWG in Brno on Wednesday:

    EWG Approves of the overall direction of P3100R7, agrees to attend/spend time reviewing every line item in Telecons, and re-consider this in Búzios.

    SF F N A SA
    16 15 6 2 0

    Result: consensus

  15. wg21bot commented on Jul 17, 2026

    @wg21bot
    CollaboratorAuthor

    P3100R7 A framework for systematically addressing undefined behaviour in the C++ Standard (Timur Doumler, Joshua Berne)

  16. changed the title [-]P3100 R6 A framework for systematically addressing undefined behaviour in the C++ Standard[/-] [+]P3100 R7 A framework for systematically addressing undefined behaviour in the C++ Standard[/+] on Jul 17, 2026
  17. hanickadot commented on Jul 27, 2026

    @hanickadot
    Collaborator

    Temperature poll during EWG 2026-07-27 teleconference.

    P3100R7/D4277R0: EWG is no longer interested in continuing our case-by-case review of Undefined Behavior from P3100 in telecons, and thus will stop our review in telecons

    SF F N A SA
    14 5 4 7 4

    Result: not consensus

  18. wg21bot commented on Aug 15, 2026

    @wg21bot
    CollaboratorAuthor

    P3100R8 A framework for systematically addressing undefined behaviour in the C++ Standard (Timur Doumler, Joshua Berne)

  19. changed the title [-]P3100 R7 A framework for systematically addressing undefined behaviour in the C++ Standard[/-] [+]P3100 R8 A framework for systematically addressing undefined behaviour in the C++ Standard[/+] on Aug 15, 2026
  20. wg21bot commented on Oct 26, 2026

    @wg21bot
    CollaboratorAuthor

    P3100R9 A framework for systematically addressing undefined behaviour in the C++ Standard (Timur Doumler, Joshua Berne)

  21. changed the title [-]P3100 R8 A framework for systematically addressing undefined behaviour in the C++ Standard[/-] [+]P3100 R9 A framework for systematically addressing undefined behaviour in the C++ Standard[/+] on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C++29Targeted at C++29EWGEvolutioncontractsContractswhitepaperTargets a whitepaper

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions