New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: Base classes incorrect when using CRTP with default template parameter (Origin: bugzilla #739863) #5674

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity major in component general for ---
Reported in version 1.8.8 on platform Other
Assigned to: Dimitri van Heesch

On 2014-11-10 01:13:36 +0000, Jason Erb wrote:

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 {
// ...

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, which derives from "ThisInterface".

On 2014-11-10 01:18:48 +0000, Jason Erb wrote:

This is specifically a problem with default template parameters; when the argument is explicitly specified, the class hierarchy is correct.

On 2014-11-22 12:01:27 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next GIT update.

On 2014-12-25 16:02:46 +0000, Dimitri van Heesch wrote:

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).

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment