Introducing template instantiation traces for static asserts and errors within templates.

This commit is contained in:
Christian Kamm
2008-08-30 10:30:57 +02:00
parent 01b6538f6f
commit 7963800bd6
5 changed files with 58 additions and 0 deletions

View File

@@ -16,6 +16,8 @@
#include "expression.h"
#include "id.h"
#include "hdrgen.h"
#include "scope.h"
#include "template.h"
/********************************* AttribDeclaration ****************************/
@@ -66,6 +68,8 @@ void StaticAssert::semantic2(Scope *sc)
}
else
error("is false");
if(sc->tinst)
sc->tinst->printInstantiationTrace();
if (!global.gag)
fatal();
}