"static int n; int n;" is an error.
Fixes test/err/static-4.c regression.
This commit is contained in:
parent
5988ec37cd
commit
d2c89d2ba9
1 changed files with 1 additions and 1 deletions
|
@ -821,7 +821,7 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags)
|
|||
}
|
||||
|
||||
/* An extern declaration must not change the current linkage. */
|
||||
if (IsFunc || (Flags & (SC_EXTERN | SC_DEF)) == SC_EXTERN) {
|
||||
if (IsFunc || (Flags & (SC_EXTERN | SC_STORAGE)) == SC_EXTERN) {
|
||||
Flags &= ~SC_EXTERN;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue