[PATCH] PR17337 - Retain previous linkage of friend function declarations
Rafael EspĂndola
rafael.espindola at gmail.com
Tue Oct 8 06:58:48 PDT 2013
> I'll give it some more thought, but I don't think so. I'm happy to support
> this as an extension if not -- for me the most convincing case is something
> like:
>
> extern "C" int f();
> extern "C++" int g();
> struct S {
> friend int f();
> friend int g();
> };
>
> I think it's impossible for S to befriend both f() and g() with the current
> behavior. (Though one might argue that you could factor out the
> implementation of f() into a function that is not extern "C", so this isn't
> necessarily a critical issue, but it is inconvenient.)
Hi Richard,
In the end, are you OK with this extension?
Cheers,
Rafael
More information about the cfe-commits
mailing list