mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-15 00:21:50 +01:00
Merge dmd 1.056.
This commit is contained in:
11
dmd/mtype.c
11
dmd/mtype.c
@@ -4061,8 +4061,15 @@ Dsymbol *TypeEnum::toDsymbol(Scope *sc)
|
||||
Type *TypeEnum::toBasetype()
|
||||
{
|
||||
if (sym->scope)
|
||||
{
|
||||
sym->semantic(NULL); // attempt to resolve forward reference
|
||||
{ // Enum is forward referenced. We don't need to resolve the whole thing,
|
||||
// just the base type
|
||||
if (sym->memtype)
|
||||
{ sym->memtype = sym->memtype->semantic(sym->loc, sym->scope);
|
||||
}
|
||||
else
|
||||
{ if (!sym->isAnonymous())
|
||||
sym->memtype = Type::tint32;
|
||||
}
|
||||
}
|
||||
if (!sym->memtype)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user