Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions compiler/src/dmd/cxxfrontend.d
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ void printTemplateStats(bool listInstances, ErrorSink eSink)
return dmd.dtemplate.printTemplateStats(listInstances, eSink);
}

void printInstantiationTrace(TemplateInstance ti)
{
return ti.printInstantiationTrace();
}

/***********************************************************
* dtoh.d
*/
Expand Down
1 change: 1 addition & 0 deletions compiler/src/dmd/template.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,6 @@ namespace dmd
TemplateParameter *isTemplateParameter(RootObject *o);
bool isError(const RootObject *const o);
void printTemplateStats(bool listInstances, ErrorSink* eSink);
void printInstantiationTrace(TemplateInstance *ti);
bool declareParameter(TemplateParameter *tp, Scope *sc);
}
1 change: 1 addition & 0 deletions compiler/src/tests/cxxfrontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,7 @@ void template_h(TemplateParameter *tp, Scope *sc, TemplateParameters *tps,
dmd::isTemplateParameter(o);
dmd::isError(o);
dmd::printTemplateStats(true, sink);
dmd::printInstantiationTrace (sc->tinst);
}

void typinf_h(Expression *e, Loc loc, Type *t, Scope *sc)
Expand Down
Loading