GNOME Bugzilla – Bug 777941
crash on friend class and xml output
Last modified: 2017-02-24 19:57:12 UTC
Example code from https://en.wikipedia.org/wiki/Friend_class class B { friend class A; // A is a friend of B private: int i; }; class A { public: A(B b) { b.i = 0; // legal access due to friendship } }; - make a new file friend.cpp containing the code above - run doxygen -g to generate a new Doxyfile - edit Doxyfile to GENERATE_XML = YES - run doxygen -> Doxygen crashes and leaves behind an empty class_b.xml
Just got the same crash, reproduced with doxygen 1.8.13. GENERATE_XML = YES C++ code: class foo { private: int x; friend class crash_here_in_xml; }; The issue is in generateXMLForMember(), which crashes like this: - md->memberType() is MemberType_Friend - isFunc is set to true - ArgumentList *al = md->argumentList() is NULL which fails at line 623 on if (al->refQualifier!=RefQualifierNone)
As far as I can see this is the same problem as in bug_776791 which has been fixed with pull request 555 and that is integrated in the master branch on January 4, 2017. Quick test showed that the problem was present in 1.8.13 but not iun my master build.
*** This bug has been marked as a duplicate of bug 776791 ***