mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-26 00:55:21 +02:00
Merge DMD r324: bugzilla 3663 and 3664 - fwd ref regressions
--- dmd/class.c | 2 +- dmd/enum.c | 4 +++- dmd/enum.h | 2 ++ dmd/mars.c | 2 +- dmd/struct.c | 5 ++++- 5 files changed, 11 insertions(+), 4 deletions(-)
This commit is contained in:
@@ -61,7 +61,7 @@ void EnumDeclaration::semantic(Scope *sc)
|
||||
memtype = Type::tint32;
|
||||
|
||||
if (symtab) // if already done
|
||||
{ if (!scope)
|
||||
{ if (isdone || !scope)
|
||||
return; // semantic() already completed
|
||||
}
|
||||
else
|
||||
@@ -96,6 +96,8 @@ void EnumDeclaration::semantic(Scope *sc)
|
||||
memtype = Type::tint32;
|
||||
}
|
||||
|
||||
isdone = 1;
|
||||
|
||||
t = isAnonymous() ? memtype : type;
|
||||
symtab = new DsymbolTable();
|
||||
sce = sc->push(this);
|
||||
|
||||
Reference in New Issue
Block a user