This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-12-19


1833. friend declarations naming implicitly-declared member functions

Section: 11.8.4  [class.friend]     Status: NAD     Submitter: Richard Smith     Date: 2014-01-13

It appears that naming an implicitly-declared member function in a friend declaration requires the full set of decorations to be specified. For example,

  struct A { };
  struct B { friend constexpr A::A() noexcept; };

There is implementation variation regarding the enforcement of this requirement, however. Should the Standard provide default treatment for such cases, allowing the simpler

    friend A::A();

?

Additional note, April, 2015:

EWG has decided not to make a change in this area.