Introduced CPlusPlus::Template and process the template declarations.

This commit is contained in:
Roberto Raggi
2010-08-11 13:46:32 +02:00
parent 6618a3cd67
commit f74ba9daef
18 changed files with 166 additions and 39 deletions

View File

@@ -143,7 +143,7 @@ void SymbolTable::enterSymbol(Symbol *symbol)
_symbols = reinterpret_cast<Symbol **>(realloc(_symbols, sizeof(Symbol *) * _allocatedSymbols));
}
assert(! symbol->_scope || symbol->scope() == this);
assert(! symbol->_scope || symbol->scope() == _owner);
symbol->_index = _symbolCount;
symbol->_scope = _owner;
_symbols[_symbolCount] = symbol;