mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-24 00:33:12 +01:00
Merged DMD commit 6669a7678506cd0dc03018ce3a341396b64d2aad:
bugzilla 2206 unnamed template mixin of class inside function or class has incorrect classinfo and mangleof
This commit is contained in:
@@ -225,11 +225,12 @@ char *TemplateInstance::mangle()
|
||||
printf("\n");
|
||||
#endif
|
||||
id = ident ? ident->toChars() : toChars();
|
||||
Dsymbol *par = isnested || isTemplateMixin() ? parent : tempdecl->parent;
|
||||
if (!tempdecl)
|
||||
error("is not defined");
|
||||
else if (tempdecl->parent)
|
||||
else if (par)
|
||||
{
|
||||
char *p = tempdecl->parent->mangle();
|
||||
char *p = par->mangle();
|
||||
if (p[0] == '_' && p[1] == 'D')
|
||||
p += 2;
|
||||
buf.writestring(p);
|
||||
|
||||
Reference in New Issue
Block a user