GNOME Bugzilla – Bug 742452
Fortran: attributes after a blank line are ignored
Last modified: 2016-09-05 13:45:15 UTC
In the following code, the type attribute "dheat" and all of the attributes that follow it are ignored, due to the blank/comment-only line that separates them from the block that includes the REAL statement. It can be quite useful to have blocks of attributes separated into logical blocks just for code reading, so this bug can get quite annoying (either I can't separate blocks into logical chunks, or I have to litter the code with extraneous variable declaration statements). ``` module data_module implicit none public !> definition of major types of constants TYPE physical_constants REAL :: & capp = 1004.64, & !< air spec. heat (J/kg/K) hlf = 0.334e6, & !< latent heat of fusion ! Some comment dheat = 21.5E-6, & !< molecular diffusivity for heat ... ```
This is a similar situation as with bug_625602, the handling of empty lines and comment lines in case of continuation lines. bug_625602 is addressing fixed formatted code, and this is free formatted code. Solution will be similar.
I've just pushed a proposed patch to github (pull request 508)
Code has been integrated in the master branch on github.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.12. 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 (preferably in the form of a self-contained example).