comparison dmd/mtype.c @ 1630:44b145be2ef5

Merge dmd 1.056.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 06 Feb 2010 15:53:52 +0000
parents e83f0778c260
children 9bf06e02070b
comparison
equal deleted inserted replaced
1629:b07d683ba4d0 1630:44b145be2ef5
4059 } 4059 }
4060 4060
4061 Type *TypeEnum::toBasetype() 4061 Type *TypeEnum::toBasetype()
4062 { 4062 {
4063 if (sym->scope) 4063 if (sym->scope)
4064 { 4064 { // Enum is forward referenced. We don't need to resolve the whole thing,
4065 sym->semantic(NULL); // attempt to resolve forward reference 4065 // just the base type
4066 if (sym->memtype)
4067 { sym->memtype = sym->memtype->semantic(sym->loc, sym->scope);
4068 }
4069 else
4070 { if (!sym->isAnonymous())
4071 sym->memtype = Type::tint32;
4072 }
4066 } 4073 }
4067 if (!sym->memtype) 4074 if (!sym->memtype)
4068 { 4075 {
4069 #ifdef DEBUG 4076 #ifdef DEBUG
4070 printf("2: "); 4077 printf("2: ");