[cfe-commits] r168410 - /cfe/trunk/lib/AST/Decl.cpp
Rafael EspĂndola
rafael.espindola at gmail.com
Sat Dec 15 07:24:27 PST 2012
> static int y;
> void foo(void) {
> extern int y;
> }
>
> the second declaration of `y' is now getting external linkage, while it
> should be internal linkage (tested on r170126).
BTW, how are you testing this? I tried
template<int &x>
void zed() {
}
static int y;
void foo(void) {
extern int y;
zed<y>();
}
But I get an internal _Z3zedILZL1yEEvv.
> Enea.
>
Cheers,
Rafael
More information about the cfe-commits
mailing list