[Bug c++/70608] New: Braced initializer in default argument misses friendship
potswa at mac dot com
gcc-bugzilla@gcc.gnu.org
Sat Apr 9 07:25:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70608
Bug ID: 70608
Summary: Braced initializer in default argument misses
friendship
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: potswa at mac dot com
Target Milestone: ---
A braced-init-list in a default function argument does not receive friendship
as it should.
class A {
A() {}
friend int ok(A);
friend int f(A);
friend int g(A);
};
int ok(A = A()); // OK.
int f(A = {}); // Error. Should be same as previous.
int g(A (&&)[1] = { A() }); // Error.
More information about the Gcc-bugs
mailing list