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 742452 - Fortran: attributes after a blank line are ignored
Fortran: attributes after a blank line are ignored
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2015-01-06 12:54 UTC by naught101
Modified: 2016-09-05 13:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description naught101 2015-01-06 12:54:45 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
      ...
```
Comment 1 albert 2015-01-06 13:48:17 UTC
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.
Comment 2 albert 2016-08-27 16:12:39 UTC
I've just pushed a proposed patch to github (pull request 508)
Comment 3 albert 2016-08-28 16:12:39 UTC
Code has been integrated in the master branch on github.
Comment 4 Dimitri van Heesch 2016-09-05 13:45:15 UTC
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).