> For example, in
>
> extern "C" {
> namespace {
> extern int x2;
> }
> }
> namespace {
> int x2;
> }
>
> Should Var->getDeclContext()->isExternCContext() return true for the second
> decl?I figured that the contexts should probably remain different given that it is used to test if a decl is out of line. I have implemented checking for incompatible language linkages and now the extra asserting should not cause any crashes. A new patch is attached. Cheers, Rafael
t.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
