diff --git a/dmd/template.c b/dmd/template.c index 9f1e6729..b512a77f 100644 --- a/dmd/template.c +++ b/dmd/template.c @@ -3186,6 +3186,14 @@ void TemplateInstance::semantic(Scope *sc) { //printf("setting aliasdecl\n"); aliasdecl = new AliasDeclaration(loc, s->ident, s); + + // LDC propagate internal information + if (tempdecl->llvmInternal) { + s->llvmInternal = tempdecl->llvmInternal; + if (FuncDeclaration* fd = s->isFuncDeclaration()) { + fd->intrinsicName = tempdecl->intrinsicName; + } + } } } }