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

Forward declarations of class templates produce spurious entries in class list (Origin: bugzilla #686689) #4931

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

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

On 2012-10-23 09:18:34 +0000, Wojciech Smigaj wrote:

I think I have come across a bug in how Doxygen handles forward
declarations of class templates. Suppose that I have the following file:

namespace N
{
template class C;

/** \brief C /
template class C
{
public:
/
* \brief method */
void method() {}
};
} // end namespace N

When I process it with Doxygen 1.8.2, the generated class list
("annotated.html") contains not only the N::C class template, but also a
spurious entry "C" outside any namespace. The latter disappears if I
remove the forward declaration of C.

The same problem occurs if a forward declaration of a class template is
found in a different source file than its definition, and each such
declaration produces a new spurious entry in the class list.

On 2013-01-13 10:55:57 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next subversion update.

On 2013-01-13 10:56:24 +0000, Dimitri van Heesch wrote:

*** Bug 691335 has been marked as a duplicate of this bug. ***

On 2013-01-17 10:03:38 +0000, Wojciech Smigaj wrote:

Thanks a lot for fixing this!

On 2013-01-20 13:34:59 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.3.1. 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