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
The instantiation of default arguments for friends defined in a templated entity is not covered by 13.7.1 [temp.decls.general] paragraph 3 or 13.9.2 [temp.inst] paragraph 2. Consider:
template <typename T> struct A { friend void foo(A &&, int = T::happy) { } }; int main(void) { foo(A<int>(), 0); }
There is implementation divergence in the treatment of this example.
Notes from the December, 2016 teleconference:
This issue should be resolved by the resolution of issue 2174.