mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-12 09:53:14 +01:00
Never make external variables something else than external.
Fixes crash in DMD testcase 'mangle'.
This commit is contained in:
@@ -1546,6 +1546,13 @@ bool mustDefineSymbol(Dsymbol* s)
|
||||
}
|
||||
}
|
||||
|
||||
if (VarDeclaration* vd = s->isVarDeclaration())
|
||||
{
|
||||
// Never define 'extern' variables.
|
||||
if (vd->storage_class & STCextern)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Inlining checks may create some variable and class declarations
|
||||
// we don't need to emit.
|
||||
if (global.inExtraInliningSemantic)
|
||||
|
||||
Reference in New Issue
Block a user