mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-27 10:03:13 +01:00
Merged DMD commit c415c01dcd76a8ede43220d14e075109bf24c81a:
bugzilla 3276 Recursion broken by alias template parameter
This commit is contained in:
@@ -3875,11 +3875,7 @@ TemplateDeclaration *TemplateInstance::findTemplateDeclaration(Scope *sc)
|
||||
if (s->parent &&
|
||||
(ti = s->parent->isTemplateInstance()) != NULL)
|
||||
{
|
||||
if (
|
||||
(ti->name == id ||
|
||||
ti->toAlias()->ident == id)
|
||||
&&
|
||||
ti->tempdecl)
|
||||
if (ti->tempdecl && ti->tempdecl->ident == id)
|
||||
{
|
||||
/* This is so that one can refer to the enclosing
|
||||
* template, even if it has the same name as a member
|
||||
|
||||
Reference in New Issue
Block a user