New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typedef to member function not found (C++) (Origin: bugzilla #643655) #4180

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.7.3 on platform Other
Assigned to: Dimitri van Heesch

On 2011-03-02 10:22:19 +0000, Kris Thielemans wrote:

Below is a case where the definition of a 2nd constructor is not matched to its declaration. The warning issued by doxygen says

doxygentests/test/member-function-problem.cxx:16: warning: no matching class member found for
Possible candidates:

It seems that the parser didn't properly understand the typedef (for MemberF), as everything works fine when the declaration and definition use the typedef.

Also note the missing brackets in the log message (line above "Possible candidates"). Maybe that provides a clue?

//! class doc
class B
typedef void (B::*MemberF)();
//! def
//! other constructor
B( void (B::*pom)());
// B( B::MemberF pom); // ok if using this declaration instead

/*! some more doc */
B::B(B::MemberF pom)

Remarkably, the bug disappears when removing the first (default) constructor.

This seems related to Bug 356204, but I checked that 1.7.3 doesn't complain about those test files anymore.

I used doxygen -g to generate a default Doxyfile for this test.



On 2011-03-27 15:18:44 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next release

On 2011-03-28 14:19:08 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.4. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment