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

Expression is always false because 'else if' condition matches previous condition (Origin: bugzilla #735623) #5581

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

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

On 2014-08-28 17:56:48 +0000, Ettl Martin wrote:

Please take a look at following code from translator_ua.h (function: trCompoundReferenceFortran, line 1585:

  if (isTemplate) // (1)

case ClassDef::Class: result+=" �од�л�"; break;
case ClassDef::Struct: result+=" Тип"; break;
case ClassDef::Union: result+=" �б'�днанн�"; break;
case ClassDef::Interface: result+=" �н�е��ей�"; break;
case ClassDef::Protocol: result+=" ��о�окол"; break;
case ClassDef::Category: result+=" �а�его���"; break;
case ClassDef::Exception: result+=" �ин��ок"; break;
default: break;
if (isTemplate) result+=" Шаблон "; // (2)


In the first condition (1), the if statement checks if 'isTemplate' is set. Otherwise the else branch is taken. In the else branch it is checked again, if 'isTemplate' is set (2). This condition is always false and can be removed, or there is some copy and paste error.

Best regards and many thanks

Martin Ettl

On 2014-08-30 19:26:47 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next GIT update.

On 2014-12-25 16:02:42 +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