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:
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
friendin [dcl] and [class].Suggested resolution: