GNOME Bugzilla – Bug 608359
unnamed class results in copy_doc not finding target in totally unrelated files
Last modified: 2010-06-15 11:22:16 UTC
Created attachment 152501 [details] reproducer This might seem a little esoteric, but this is real code and it was quit hard to find what was triggering the bug. The attached file copy_doc.h contains a little example that reproduces the bug and I've used Comeau C/C++ Online to make sure, that this is valid C++. The two classes data::abs_interface and data::totally_unrelated and the object foo might be in parts of the project that seems to be totally unrelated. When I implement the interface data::abs_interface with an unnamed class, this will cause doxygen to not find the @copydoc target in class data::totally_unrelated. A working workaround is to give the class of foo a name. best regards Torsten
Created attachment 152502 [details] doxyfile
I've debug the issue a little bit and what I've found so far is, that the anonymous class gets added as a class named "@0::data" and this seems to hide data::totally_unrelated when the copydoc command looks up f1().
Confirmed. This should be corrected in the latest subversion update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.7.0. 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.