comparison dmd/struct.c @ 1624:ae8a94d87ca9

Merge DMD r318: bugzilla 2029 Typesafe variadic functions don't... bugzilla 2029 Typesafe variadic functions don't work in CTFE. --- dmd/aggregate.h | 1 + dmd/struct.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-)
author Leandro Lucarella <llucax@gmail.com>
date Wed, 06 Jan 2010 15:18:22 -0300
parents c61782a76dff
children 79f64d5fee9e
comparison
equal deleted inserted replaced
1623:1d48eced441f 1624:ae8a94d87ca9
458 semantic2(sc); 458 semantic2(sc);
459 semantic3(sc); 459 semantic3(sc);
460 } 460 }
461 } 461 }
462 462
463 Dsymbol *StructDeclaration::search(Loc loc, Identifier *ident, int flags)
464 {
465 //printf("%s.StructDeclaration::search('%s')\n", toChars(), ident->toChars());
466
467 if (scope)
468 semantic(scope);
469
470 if (!members || !symtab)
471 {
472 error("is forward referenced when looking for '%s'", ident->toChars());
473 return NULL;
474 }
475
476 return ScopeDsymbol::search(loc, ident, flags);
477 }
478
463 void StructDeclaration::toCBuffer(OutBuffer *buf, HdrGenState *hgs) 479 void StructDeclaration::toCBuffer(OutBuffer *buf, HdrGenState *hgs)
464 { int i; 480 { int i;
465 481
466 buf->printf("%s ", kind()); 482 buf->printf("%s ", kind());
467 if (!isAnonymous()) 483 if (!isAnonymous())