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 732594 - Two entries for a single member in Doxygen XML
Two entries for a single member in Doxygen XML
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.6
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-07-01 23:09 UTC by victor.zverovich
Modified: 2014-08-21 17:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example (715 bytes, application/zip)
2014-07-02 16:06 UTC, victor.zverovich
Details
output (3.52 KB, text/xml)
2014-07-02 16:08 UTC, victor.zverovich
Details

Description victor.zverovich 2014-07-01 23:09:11 UTC
Consider the following example:

  template <typename T>
  class A {
    typedef T U;
    U f();
  };

  template <typename T>
  typename A<T>::U A<T>::f() {}

The XML generated with Doxygen 1.8.6 contains two entries for the member function template f:

      <member refid="class_a_1a1534227ab314f4f20f53729ced034ffd" prot="private" virt="non-virtual"><scope>A</scope><name>f</name></member>
      <member refid="class_a_1aa592f5abbcd7a8d3ad8345a0e538715d" prot="public" virt="non-virtual"><scope>A</scope><name>f</name></member>

Moreover, one of these entries have prot=public. When generating an HTML file only a single member is shown, but it is incorrectly placed in the Public Member Functions section.
Comment 1 albert 2014-07-02 08:07:04 UTC
I tried to reproduce the problem with the 1.8.6 version by copying the given example lines into a file (aa.h) and I could not find the referenced text, I found:
    <listofallmembers>
      <member refid="class_a_1ac14754f13ced4460b102990b1a1422c6" prot="private" virt="non-virtual"><scope>A</scope><name>f</name></member>
      <member refid="class_a_1ac767bad56ef2347c7bebef8ae97c2b31" prot="private" virt="non-virtual"><scope>A</scope><name>U</name></member>
    </listofallmembers>

This looks OK to me.

Please add a (small) self-contained example (source+results+config file in a zip or tar) to reproduce / showing the problem.
Comment 2 victor.zverovich 2014-07-02 16:06:39 UTC
Created attachment 279788 [details]
example
Comment 3 victor.zverovich 2014-07-02 16:08:16 UTC
Created attachment 279789 [details]
output
Comment 4 victor.zverovich 2014-07-02 16:09:38 UTC
I've added a self-contained example and the generated XML output. Please let me know if you need any additional information.
Comment 5 Dimitri van Heesch 2014-08-08 12:03:18 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 6 Dimitri van Heesch 2014-08-21 17:15:21 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.8. 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 (preferrably in the form of a self-contained example).