Skip to content

[stmt.label] Labels being described as "in" functions is imprecise P3568 #1007

Description

@t3nsor

Full name of submitter: Brian Bi

Issue description: Text that refers to labels being "in" functions or statements is not meant to include labels inside lambdas and local classes. This occurs in [stmt.label]/1, [stmt.label]/3, [stmt.switch]/3, and [stmt.goto]/1.

Suggested resolution: Perhaps extend the definition of "enclose" to include labels and then use "enclose" where appropriate.

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