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 722457 - regression referencing namespaced type
regression referencing namespaced type
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: documentation
1.8.6
Other Linux
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-01-17 21:21 UTC by Reece H. Dunn
Modified: 2014-04-21 10:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Reece H. Dunn 2014-01-17 21:21:40 UTC
For the standard Doxyfile and the code:

-----
namespace cainteoir { namespace rdf
{
	struct uri {};

	class literal
	{
	public:
		uri type;

		literal();

		template<typename T>
		literal(const T &aValue);

		template<typename T>
		literal(const T &aValue, const std::string &aLanguage);

		template<typename T>
		literal(const T &aValue, const uri &aType);
	};
}}
-----

given either:

    /**
    \fn    cainteoir::rdf::literal::literal(const T &aValue, const cainteoir::rdf::uri &aType)
    \brief Create a datatype literal resource.
    */

or:

    /**
    \fn    cainteoir::rdf::literal::literal(const T &aValue, const uri &aType)
    \brief Create a datatype literal resource.
    */

the following warning is generated:

-----
warning: no matching class member found for 
  cainteoir::rdf::literal::literal(const T &aValue, const cainteoir::rdf::uri &aType)
Possible candidates:
  cainteoir::rdf::literal::literal()
  'template < T >
  cainteoir::rdf::literal::literal(const T &aValue)
  'template < T >
  cainteoir::rdf::literal::literal(const T &aValue, const std::string &aLanguage)
  'template < T >
  cainteoir::rdf::literal::literal(const T &aValue, const uri &aType)
-----

This warning is not present in 1.8.6.

NOTE: Removing the line:

    uri type;

makes the following documentation work:

-----
    /**
    \fn    cainteoir::rdf::literal::literal(const T &aValue, const uri &aType)
    \brief Create a datatype literal resource.
    */
-----
Comment 1 Reece H. Dunn 2014-01-17 21:33:18 UTC
I have run a bisect which points to:

-----
2c93aa6fb588279dbd903831acad949c71681ca6 is the first bad commit
commit 2c93aa6fb588279dbd903831acad949c71681ca6
Author: Dimitri van Heesch <dimitri@stack.nl>
Date:   Sun Oct 13 13:23:29 2013 +0200

    Bug 709052 - Templated and non-templated method mixup documentation
-----
Comment 2 Dimitri van Heesch 2014-02-15 18:21:19 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 3 Dimitri van Heesch 2014-04-21 10:09:17 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.7. 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).