Title
Missing prohibition against constexpr in friend declaration
Status
cd5
Section
13.7.5 [temp.friend]
Submitter
Richard Smith

Created on 2018-06-14.00:00:00 last changed 47 months ago

Messages

Date: 2019-02-15.00:00:00

Proposed resolution (February, 2019):

Change 13.7.5 [temp.friend] paragraph 8 as follows:

When a friend declaration refers to a specialization of a function template, the function parameter declarations shall not include default arguments, nor shall the inline specifier inline, constexpr, or consteval specifiers be used in such a declaration.
Date: 2018-12-15.00:00:00

Notes from the December, 2018 teleconference:

This should also cover the newly-added consteval specifier.

Date: 2019-02-15.00:00:00

[Accepted as a DR at the February, 2019 meeting.]

According to 13.7.5 [temp.friend] paragraph 8,

When a friend declaration refers to a specialization of a function template, the function parameter declarations shall not include default arguments, nor shall the inline specifier be used in such a declaration.

Presumably this should also include the constexpr specifier.

History
Date User Action Args
2020-12-15 00:00:00adminsetmessages: + msg6415
2020-12-15 00:00:00adminsetmessages: + msg6414
2018-06-14 00:00:00admincreate