mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-16 00:57:02 +02:00
Upgraded frontend to DMD 1.035
This commit is contained in:
@@ -898,6 +898,9 @@ void VarDeclaration::semantic(Scope *sc)
|
||||
|
||||
if (init)
|
||||
{
|
||||
sc = sc->push();
|
||||
sc->stc &= ~(STCconst | STCinvariant | STCpure);
|
||||
|
||||
ArrayInitializer *ai = init->isArrayInitializer();
|
||||
if (ai && tb->ty == Taarray)
|
||||
{
|
||||
@@ -1031,6 +1034,7 @@ void VarDeclaration::semantic(Scope *sc)
|
||||
init = i2; // no errors, keep result
|
||||
}
|
||||
}
|
||||
sc = sc->pop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user