Skip to content

CWG2999 Trivial unions changing existing behavior #2418

Description

@jensmaurer

The changes applied by P3074R7 for C++26 alter existing well-defined behavior for template arguments.

It is unclear whether such changes were design-intended.

See CWG2999 for details.

See also P3726R0 (Adjustments to Union Lifetime Rules) #2356.

Activity

  1. added this to the 2025-telecon milestone on Sep 11, 2025
  2. jensmaurer commented on Nov 6, 2025

    @jensmaurer
    MemberAuthor

    EWG in Kona:

    See P3726 R0 Adjustments to Union Lifetime Rules #2356
    and the decisions documented in cplusplus/nbballot#664

  3. added and removed
    EWGEvolution
    on Nov 6, 2025
  4. moved this to Ready for review in CWGon Nov 6, 2025
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++26Targeted at C++26CWGCorenb-commentThis paper is referenced in a NB comment

    Type

    No type

    Projects

    • Status
      Ready for review

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions