Skip to content

CWG3193 [dcl.friend] Missing rule banning friend declarations outside classes #906

@timsong-cpp

Description

@timsong-cpp

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

Reference (section label): [dcl.friend]

Link to reflector thread (if any): see CWG mattermost

Issue description:

We seem to be missing a rule that actually disallows friend declarations outside classes. At least, I haven't been able to locate one after a quick look at all the use of friend in [dcl] and [class].

Suggested resolution:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions