Skip to content

Commit 200cec9

Browse files
committed
issue doxygen#11541 Template specialisations get copies of members of the primary template
1 parent 529bd90 commit 200cec9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/classdef.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4433,7 +4433,11 @@ void ClassDefImpl::addMembersToTemplateInstance(const ClassDef *cd,const Argumen
44334433
{
44344434
for (const auto &mi : *mni)
44354435
{
4436-
addMemberToTemplateInstance(mi->memberDef(),templateArguments,templSpec);
4436+
const MemberDef *md = mi->memberDef();
4437+
if (m_allMemberNameInfoLinkedMap.find(md->name())==nullptr) // only insert the member if not hidden by one with the same name (#11541)
4438+
{
4439+
addMemberToTemplateInstance(md,templateArguments,templSpec);
4440+
}
44374441
}
44384442
}
44394443
// also instantatie members for nested classes

0 commit comments

Comments
 (0)