[cfe-dev] Extern ref from method defined outside its namespace

Robinson, Paul Paul.Robinson at am.sony.com
Thu Dec 20 11:46:43 PST 2012


>> But, adding the "extern" declaration causes Clang to treat "k2" as
>> a reference to "aaa::k2" rather than "::k2".  I think that's wrong.
>
> There is no aaa:k2 in the above example, have you included an incomplete test?

Yes, that is the complete test.  Clang generates an external reference to
"aaa::k2" which then causes the link to fail.
--paulr




More information about the cfe-dev mailing list