After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686689 - Forward declarations of class templates produce spurious entries in class list
Forward declarations of class templates produce spurious entries in class list
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.2
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
: 691335 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-10-23 09:18 UTC by Wojciech Smigaj
Modified: 2013-01-20 13:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Wojciech Smigaj 2012-10-23 09:18:34 UTC
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 T> class C;

/** \brief C */
template <class T> 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.
Comment 1 Dimitri van Heesch 2013-01-13 10:55:57 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 2 Dimitri van Heesch 2013-01-13 10:56:24 UTC
*** Bug 691335 has been marked as a duplicate of this bug. ***
Comment 3 Wojciech Smigaj 2013-01-17 10:03:38 UTC
Thanks a lot for fixing this!
Comment 4 Dimitri van Heesch 2013-01-20 13:34:59 UTC
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.