Fixed more template-id vs expressions ambiguites.

This commit is contained in:
Roberto Raggi
2009-06-19 12:39:11 +02:00
parent 3545c822c9
commit 20545fd4b1
3 changed files with 20 additions and 5 deletions

View File

@@ -552,10 +552,10 @@ int main(int argc, char *argv[])
TranslationUnitAST *ast = unit.ast()->asTranslationUnit();
Q_ASSERT(ast != 0);
Scope globalScope;
Namespace *globalNamespace = control.newNamespace(0, 0);
Semantic sem(&control);
for (DeclarationListAST *decl = ast->declarations; decl; decl = decl->next) {
sem.check(decl->declaration, &globalScope);
sem.check(decl->declaration, globalNamespace->members());
}
// test the rewriter