Skip to content

[dcl.contract.res]/1 The declaration of result bindings is inconsistent #1012

Description

@BlowingWind314

Full name of submitter (unless configured in github; will be published with the issue): Yin Xinyu

[dcl.contract.res]/1 says

The result-name-introducer of a postcondition-specifier is a declaration. The result-name-introducer introduces the identifier as the name of a result binding of the associated function....

However, it betrays [basic.pre] bullet (5.4)

Every name is introduced by a declaration, which is a

Suggested resolution:

Either edit [dcl.contract.res]/1

The result-name-introducer of a postcondition-specifier is a declaration. The result-name-introducer introduces the identifier as the name of a result binding of the associated function....

or edit [basic.pre] bullet (5.4)

identifier in a result-name-introducer in a postcondition assertion ([dcl.contract.res]),

Activity

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