From 40f187cc3c6bf8a0599a47557b0c7c60ad1756c9 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Thu, 26 Sep 2019 22:18:14 +0200 Subject: issue #7277: C++ - Crash using all system memory on using parent constructor with same name --- src/doxygen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 45f07a4..953a5de 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -2125,7 +2125,7 @@ static void findUsingDeclImports(Entry *root) ) { //printf("Found using declaration %s inside section %x\n", - // rootNav->name().data(), rootNav->parent()->section()); + // root->name.data(), root->parent()->section); QCString fullName=removeRedundantWhiteSpace(root->parent()->name); fullName=stripAnonymousNamespaceScope(fullName); fullName=stripTemplateSpecifiersFromScope(fullName); @@ -2139,7 +2139,7 @@ static void findUsingDeclImports(Entry *root) QCString scope=root->name.left(i); QCString memName=root->name.right(root->name.length()-i-2); const ClassDef *bcd = getResolvedClass(cd,0,scope); // todo: file in fileScope parameter - if (bcd) + if (bcd && bcd!=cd) { //printf("found class %s memName=%s\n",bcd->name().data(),memName.data()); MemberNameInfoSDict *mndict=bcd->memberNameInfoSDict(); -- cgit v0.12