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 739863 - Regression: Base classes incorrect when using CRTP with default template parameter
Regression: Base classes incorrect when using CRTP with default template para...
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.8
Other Mac OS
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-11-10 01:13 UTC by Jason Erb
Modified: 2014-12-25 16:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jason Erb 2014-11-10 01:13:36 UTC
This started in 1.8.7, and persists in 1.8.8.

Consider the following code:

	template <
		typename ThisImplementation,
		typename ThisInterface = Consumer
	>
	class DefaultConsumer:
	public ThisInterface {
		// ...
	};

	class Evaluator:
	public DefaultConsumer<Evaluator> {
		// ...
	};

Prior to 1.8.7, the hierarchy correctly showed that Evaluator derived from DefaultConsumer<Evaluator, Consumer>, which in turn derived from Consumer.

In 1.8.7 and 1.8.8, the hierarchy incorrectly shows that Evaluator derives from DefaultConsumer<Evaluator>, which derives from "ThisInterface".
Comment 1 Jason Erb 2014-11-10 01:18:48 UTC
This is specifically a problem with default template parameters; when the argument is explicitly specified, the class hierarchy is correct.
Comment 2 Dimitri van Heesch 2014-11-22 12:01:27 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 3 Dimitri van Heesch 2014-12-25 16:02:46 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.9. 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).