GNOME Bugzilla – Bug 643618
Fortran: variable with name "type" confuses Doxygen
Last modified: 2014-04-22 17:00:54 UTC
A variable with the name "type" confuses Doxygen, Doxygen thinks it is the start of a type definition. Example code: program tst type = 1 end Error message: ******************************************************************** Error in file /cygdrive/c/Users/user/AppData/Local/Temp/dg/type_var.f90 line: 5, state: 17 ******************************************************************** Note: problem looks like the problem mentioned in bug 643671 ("type is" construct) but the "type is" construct is relatively easy to fix due to the word "is" in the construct.
I have the same problem on doxygen version 1.7.6.1, distribution for Mac OS X 10.6 (Snow Leopard). In Fortran, if one assigns a value to a variable with a "type" prefix, it produces an error... Example code: -------------- program Test_1 implicit none integer :: type_test ! Just the declaration -> No error! integer :: typetest ! Just the declaration -> No error! type_test = 1 ! With assignment -> Error! typetest = 1 ! With assignment -> Error! end program Test_1 Error message: -------------- ******************************************************************** Error in file /home/toto/SDN/Test/Test_1.f90 line: 14, state: 17 ******************************************************************** *** Doxygen has finished
A similar problem occurs with: program test typeOfSelection = .false. end but not with: subroutine test typeOfSelection = .false. end
Most of the problems were already solved with version 1.8.5 only the underscore (_) was not handled. I've pushed a solution to github (pull request 135).
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).