From 2fc1a5914b3d9770e64b73dcff29ae365c85e5ed Mon Sep 17 00:00:00 2001 From: dchidindu5 Date: Thu, 14 Nov 2024 00:47:50 +0100 Subject: [PATCH] update aggregate.h --- compiler/src/dmd/aggregate.h | 2 ++ compiler/src/tests/cxxfrontend.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/src/dmd/aggregate.h b/compiler/src/dmd/aggregate.h index 585c6f92a196..b3f5e6f05709 100644 --- a/compiler/src/dmd/aggregate.h +++ b/compiler/src/dmd/aggregate.h @@ -46,6 +46,8 @@ namespace dmd FuncDeclaration *search_toString(StructDeclaration *sd); void semanticTypeInfoMembers(StructDeclaration *sd); bool fill(StructDeclaration* sd, const Loc &loc, Expressions &elements, bool ctorinit); + Scope* newScope(AggregateDeclaration *d, Scope* sc); + Scope* newScope(AttribDeclaration *d, Scope* sc); } enum class ClassKind : uint8_t diff --git a/compiler/src/tests/cxxfrontend.cc b/compiler/src/tests/cxxfrontend.cc index 6a8e53d9ab66..2a44bf2995c3 100644 --- a/compiler/src/tests/cxxfrontend.cc +++ b/compiler/src/tests/cxxfrontend.cc @@ -234,7 +234,7 @@ void test_visitors() ClassDeclaration *cd = ClassDeclaration::create(loc, Identifier::idPool("TypeInfo"), NULL, NULL, true); assert(cd->isClassDeclaration() == cd); assert(cd->vtblOffset() == 1); - //assert(vtblOffset(cd) == 1); + //assert(dmd::vtblOffset(cd) == 1); cd->accept(&tv); assert(tv.aggr == true);