diff --git a/compiler/src/dmd/dsymbol.h b/compiler/src/dmd/dsymbol.h index 28899e3e0702..7b33ed2910bf 100644 --- a/compiler/src/dmd/dsymbol.h +++ b/compiler/src/dmd/dsymbol.h @@ -433,6 +433,4 @@ namespace dmd Dsymbols *include(Dsymbol *d, Scope *sc); void setScope(Dsymbol *d, Scope *sc); void importAll(Dsymbol *d, Scope *sc); - Scope* newScope(AggregateDeclaration d, Scope* sc); - Scope* newScope(AttribDeclaration d, Scope* sc); } diff --git a/compiler/src/tests/cxxfrontend.cc b/compiler/src/tests/cxxfrontend.cc index 9ece3bc4e26c..6a8e53d9ab66 100644 --- a/compiler/src/tests/cxxfrontend.cc +++ b/compiler/src/tests/cxxfrontend.cc @@ -233,8 +233,8 @@ 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(cd->vtblOffset() == 1); + //assert(vtblOffset(cd) == 1); cd->accept(&tv); assert(tv.aggr == true);