mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-05-05 01:41:30 +02:00
Introducing template instantiation traces for static asserts and errors within templates.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user