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 706804 - Fortran: Doxygen mixes up function-attributes with the return type
Fortran: Doxygen mixes up function-attributes with the return type
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.4
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-08-26 14:21 UTC by Stefan
Modified: 2013-12-24 18:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan 2013-08-26 14:21:01 UTC
With Fortran, Doxygen 1.8.4 mixes up function-attributes with the returned type. 

For example, assume the following function body:
[PURE, ELEMENTAL, RECURSIVE] FUNCTION test_func(a) RESULT(b)
    REAL, INTENT(IN) :: a
    REAL :: b
    :
END FUNCTION

In case of function-attributes as PURE, ELEMENTAL or RECURSIVE Doxygen misses out that the test_func()'s return value is of type REAL. Instead it says:
    [pure, elemental, recursive] function test_func(real, intent(in) a)		

Cheers,
Stefan
Comment 1 albert 2013-08-26 17:29:41 UTC
I've just created a bug fix for this problem and pushed it to git.
Comment 2 Dimitri van Heesch 2013-08-27 07:23:16 UTC
Thanks, I've merged the pull request.
Comment 3 Stefan 2013-08-27 07:59:01 UTC
Awesome, tanks for fixing it. This was really quick!
Comment 4 Dimitri van Heesch 2013-12-24 18:59:34 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.6. 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).