Skip to content

CWG2964 [conv.lval] Reading "invalid pointer values" #645

Description

@opensdh

Reference (section label): [conv.lval]

Issue description:

CWG2822 disambiguated that pointer values don't get replaced with invalid pointer values, but merely become invalid in the context of evaluations not inside the duration of their referenced region of storage. However, /3.3 still uses "invalid pointer value" (with a strange cross reference).

Suggested resolution:

Use the valid-in-context wording, or else just strike the bullet assuming that any lvalue-to-rvalue transformation takes place only when the result is used in an evaluation, triggering the rule in [basic.compound].

Activity

  1. changed the title [-][conv.lval] Reading "invalid pointer values"[/-] [+]CWG2964 [conv.lval] Reading "invalid pointer values"[/+] on Dec 5, 2024
  2. jensmaurer commented on Dec 5, 2024

    @jensmaurer
    Member
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions