comparison dmd/mtype.c @ 1623:1d48eced441f

Merge DMD r317: bugzilla 3611 Enum forward referencing regression --- dmd/enum.c | 17 +++++++++++++++-- dmd/mtype.c | 4 ++++ 2 files changed, 19 insertions(+), 2 deletions(-)
author Leandro Lucarella <llucax@gmail.com>
date Wed, 06 Jan 2010 15:18:22 -0300
parents fb2e6707ad17
children 8fa4ab3dcc88
comparison
equal deleted inserted replaced
1622:a542ef277a84 1623:1d48eced441f
4063 return sym; 4063 return sym;
4064 } 4064 }
4065 4065
4066 Type *TypeEnum::toBasetype() 4066 Type *TypeEnum::toBasetype()
4067 { 4067 {
4068 if (sym->scope)
4069 {
4070 sym->semantic(NULL); // attempt to resolve forward reference
4071 }
4068 if (!sym->memtype) 4072 if (!sym->memtype)
4069 { 4073 {
4070 #ifdef DEBUG 4074 #ifdef DEBUG
4071 printf("2: "); 4075 printf("2: ");
4072 #endif 4076 #endif