Patch for Friend function linkage check (PR 15841)
John McCall
rjmccall at apple.com
Thu Apr 25 09:06:50 PDT 2013
On Apr 25, 2013, at 7:30 AM, Rafael EspĂndola <rafael.espindola at gmail.com> wrote:
>> Linkage specifications don't actually have members under the standard.
>> Instead, they just set the language linkage of any non-class-member name
>> declared therein that has external linkage. That would seem to apply to
>> a friend declaration.
>
> I see, it is just a difference on how the standard is written and how
> clang is implemented. Is something like the attached patch what we
> need?
I'd just tweak the loop immediately above to separately remember the
DC to declare the entity in.
John.
More information about the cfe-commits
mailing list