Add fix for template overload with multiple includes
This commit is contained in:
parent
2310416c46
commit
a0215a4f21
|
@ -12051,7 +12051,12 @@ void Parser::ParseTemplateDeclarationBody(Declaration * tdec, Declaration * pthi
|
|||
pdec = pdec->mNext;
|
||||
}
|
||||
|
||||
if (pdec && pdec->mTemplate)
|
||||
if (!pdec)
|
||||
{
|
||||
ppdec->mNext = tdec->mBase;
|
||||
tdec->mBase->mNext = nullptr;
|
||||
}
|
||||
else if (pdec->mTemplate)
|
||||
{
|
||||
tdec->mNext = pdec->mTemplate->mNext;
|
||||
pdec->mTemplate->mNext = tdec;
|
||||
|
|
Loading…
Reference in New Issue