[C++ Patch] PR 60686

Jason Merrill jason@redhat.com
Wed Jul 9 20:34:00 GMT 2014


On 07/09/2014 06:07 AM, Paolo Carlini wrote:
> The third case, I don't think it can really happen,
> because there are earlier checks which simply return error_mark_node if
> a declaration is within the wrong class...

Not if it's a friend declaration:

struct A {
   explicit A(int);
};

struct B {
   explicit friend A::A(int);
};

Jason



More information about the Gcc-patches mailing list